aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rts5208
diff options
context:
space:
mode:
authorWayne Porter <wporter82@gmail.com>2016-10-11 21:56:44 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 10:27:02 +0200
commita38e369b31ee7498c63eb3307392020e9250b6f6 (patch)
tree3fafa3fe6945293ad5ac349c51b16651067bb395 /drivers/staging/rts5208
parentstaging: rts5208: Spacing (diff)
downloadlinux-dev-a38e369b31ee7498c63eb3307392020e9250b6f6.tar.xz
linux-dev-a38e369b31ee7498c63eb3307392020e9250b6f6.zip
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>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r--drivers/staging/rts5208/rtsx_card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts5208/rtsx_card.c b/drivers/staging/rts5208/rtsx_card.c
index 657d2da70a9c..a6b7bffc6714 100644
--- a/drivers/staging/rts5208/rtsx_card.c
+++ b/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;
}