]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Simplify conditional check again
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 26 Mar 2019 22:04:46 +0000 (15:04 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:28:15 +0000 (21:28 -0400)
commitdeda0469ee6dc7600fd83df11892da377ebcb753
tree5a1179ac58820da2a5b8b7a6e4aa1060589b9e9d
parent671a5fd731ad04088f1dd0f6a7c8683edb78b12e
scsi: qla2xxx: Simplify conditional check again

Clang warns when it sees a logical not on the left side of a conditional
statement because it thinks the logical not should be applied to the whole
statement, not just the left side:

drivers/scsi/qla2xxx/qla_nx.c:3703:7: warning: logical not is only
applied to the left hand side of this comparison
[-Wlogical-not-parentheses]

This particular instance was already fixed by commit 39df8aec0905 ("scsi:
qla2xxx: Simplify conditional check") upstream but it was reintroduced by
commit 52ebba85059f ("scsi: qla2xxx: Update flash read/write routine") in
the 5.2/scsi-queue.

Fixes: 52ebba85059f ("scsi: qla2xxx: Update flash read/write routine")
Link: https://github.com/ClangBuiltLinux/linux/issues/80
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_nx.c