From: Sandhya Bankar Date: Mon, 19 Sep 2016 09:15:04 +0000 (+0530) Subject: Staging: rts5208: rtsx: Use x instead of x != NULL. X-Git-Tag: v4.9.8~1233^2~301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bee668de51b7c5ed59be2696a199a335af3397a;p=platform%2Fkernel%2Flinux-rpi3.git Staging: rts5208: rtsx: Use x instead of x != NULL. Use x instead of x != NULL. This patch was found by checkpatch. Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index d75fa8d..d7554f4 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -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;