Staging: rts5208: rtsx: Use x instead of x != NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Mon, 19 Sep 2016 09:15:04 +0000 (14:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:57:19 +0000 (13:57 +0200)
Use x instead of x != NULL. This patch was found by checkpatch.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c

index d75fa8d..d7554f4 100644 (file)
@@ -131,7 +131,7 @@ static int queuecommand_lck(struct scsi_cmnd *srb,
        struct rtsx_chip *chip = dev->chip;
 
        /* check for state-transition errors */
-       if (chip->srb != NULL) {
+       if (chip->srb) {
                dev_err(&dev->pci->dev, "Error: chip->srb = %p\n",
                        chip->srb);
                return SCSI_MLQUEUE_HOST_BUSY;