]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rts5208: Comparison to NULL
authorWayne Porter <wporter82@gmail.com>
Tue, 11 Oct 2016 21:56:44 +0000 (21:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:02 +0000 (10:27 +0200)
Fix to resolve checkpatch message

Signed-off-by: Wayne Porter <wporter82@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_card.c

index 657d2da70a9cf0ca4dceb852ab6ff86f1fe86cb8..a6b7bffc67149f4c16591df46ad3ca32bd2cbf62 100644 (file)
@@ -986,7 +986,7 @@ int card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip,
        unsigned int lun = SCSI_LUN(srb);
        int i;
 
-       if (chip->rw_card[lun] == NULL) {
+       if (!chip->rw_card[lun]) {
                rtsx_trace(chip);
                return STATUS_FAIL;
        }