mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 02:47:31 -04:00
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>
This commit is contained in:
committed by
Martin K. Petersen
parent
e5406d8ad4
commit
973c920811
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user