linux_dsm_epyc7002/drivers/scsi/libfc
Julia Lawall aa6cd29b72 [SCSI] libfc: Correct use of ! and &
!ep->esb_stat is either 1 or 0, and the rightmost bit of ESB_ST_COMPLETE is
always 0, making the result of !ep->esb_stat & ESB_ST_COMPLETE always 0.
Thus parentheses around the argument to ! seem needed.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@ expression E; constant C; @@
(
  !E & !C
|
- !E & C
+ !(E & C)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2009-03-12 12:58:13 -05:00
..
fc_disc.c [SCSI] libfc, fcoe: Fix kerneldoc comments 2009-03-10 09:04:40 -05:00
fc_elsct.c [SCSI] libfc: A modular Fibre Channel library 2008-12-29 11:24:33 -06:00
fc_exch.c [SCSI] libfc: Correct use of ! and & 2009-03-12 12:58:13 -05:00
fc_fcp.c [SCSI] Remove SUGGEST flags 2009-03-12 12:58:02 -05:00
fc_frame.c [SCSI] libfc: A modular Fibre Channel library 2008-12-29 11:24:33 -06:00
fc_lport.c [SCSI] libfc: fix compile warning 2009-03-12 12:57:56 -05:00
fc_rport.c [SCSI] libfc: fix compile warning 2009-03-12 12:57:56 -05:00
Makefile [SCSI] libfc: A modular Fibre Channel library 2008-12-29 11:24:33 -06:00