diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-03-09 04:39:13 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-25 03:13:01 +0100 |
commit | 973c920811bc60e1e824be0ec355a9b0a7a3d4d5 (patch) | |
tree | d2412258c8f68d8c77fe6224092348ef9d0b13e5 /drivers/scsi/dc395x.c | |
parent | scsi: qla2xxx: Check kzalloc() return value (diff) | |
download | linux-973c920811bc60e1e824be0ec355a9b0a7a3d4d5.tar.xz linux-973c920811bc60e1e824be0ec355a9b0a7a3d4d5.zip |
scsi: dc395x: Use bitwise instead of arithmetic operator for flags
Fix the following coccicheck warnings:
./drivers/scsi/dc395x.c:2921:28-29: WARNING: sum of probable bitmasks,
consider |.
Link: https://lore.kernel.org/r/1615261153-32647-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/dc395x.c')
-rw-r--r-- | drivers/scsi/dc395x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 5503230006f8..1e9ec4d8c605 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c @@ -2918,7 +2918,7 @@ static void disconnect(struct AdapterCtlBlk *acb) } else { if ((srb->state & (SRB_START_ + SRB_MSGOUT)) || !(srb-> - state & (SRB_DISCONNECT + SRB_COMPLETED))) { + state & (SRB_DISCONNECT | SRB_COMPLETED))) { /* * Selection time out * SRB_START_ || SRB_MSGOUT || (!SRB_DISCONNECT && !SRB_COMPLETED) |