• Nathan Chancellor's avatar
    scsi: pcmcia: nsp_cs: Remove unnecessary parentheses · 7e1c99e5
    Nathan Chancellor authored
    Clang warns:
    
    drivers/scsi/pcmcia/nsp_cs.c:1137:27: warning: equality comparison with
    extraneous parentheses [-Wparentheses-equality]
                    if ((tmpSC->SCp.Message == MSG_COMMAND_COMPLETE)) {
                         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
    drivers/scsi/pcmcia/nsp_cs.c:1137:27: note: remove extraneous
    parentheses around the comparison to silence this warning
                    if ((tmpSC->SCp.Message == MSG_COMMAND_COMPLETE)) {
                        ~                   ^                      ~
    drivers/scsi/pcmcia/nsp_cs.c:1137:27: note: use '=' to turn this
    equality comparison into an assignment
                    if ((tmpSC->SCp.Message == MSG_COMMAND_COMPLETE)) {
                                            ^~
                                            =
    1 warning generated.
    Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    7e1c99e5
nsp_cs.c 44.8 KB