From 8bee668de51b7c5ed59be2696a199a335af3397a Mon Sep 17 00:00:00 2001 From: Sandhya Bankar Date: Mon, 19 Sep 2016 14:45:04 +0530 Subject: [PATCH] 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 --- drivers/staging/rts5208/rtsx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index d75fa8d0c321..d7554f469d5e 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; -- 2.30.2