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 d75fa8d0c3215d439482f0c7a7be57006205ee22..d7554f469d5e0ee6f3e1d0545b8527cb51d9b219 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;