diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-09-20 22:58:58 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-09-21 05:13:19 +0200 |
commit | 874deb1c652df94917f5619d972d2435a762b8a0 (patch) | |
tree | 75020fa27d28645b9f587ae45aa7ec45fc29025e /drivers/nfc/nfcsim.c | |
parent | scsi: target: iblock: split T10 PI SGL across command bios (diff) | |
download | linux-874deb1c652df94917f5619d972d2435a762b8a0.tar.xz linux-874deb1c652df94917f5619d972d2435a762b8a0.zip |
scsi: advansys: Remove unnecessary parentheses
Clang warns when multiple pairs of parentheses are used for a single
conditional statement.
drivers/scsi/advansys.c:6451:20: warning: equality comparison with
extraneous parentheses [-Wparentheses-equality]
if ((sdtr_data == 0xFF)) {
~~~~~~~~~~^~~~~~~
drivers/scsi/advansys.c:6451:20: note: remove extraneous parentheses
around the comparison to silence this warning
if ((sdtr_data == 0xFF)) {
~ ^ ~
drivers/scsi/advansys.c:6451:20: note: use '=' to turn this equality
comparison into an assignment
if ((sdtr_data == 0xFF)) {
^~
=
1 warning generated.
Link: https://github.com/ClangBuiltLinux/linux/issues/155
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/nfc/nfcsim.c')
0 files changed, 0 insertions, 0 deletions