OSDN Git Service

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 657d2da..a6b7bff 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;
        }