Browse Source

staging: rts5208: Comparison to NULL

Fix to resolve checkpatch message

Signed-off-by: Wayne Porter <wporter82@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Wayne Porter 8 years ago
parent
commit
a38e369b31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/rts5208/rtsx_card.c

+ 1 - 1
drivers/staging/rts5208/rtsx_card.c

@@ -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;
 	}