mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02: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:
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user