summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorNamrata A Shettar <namrataashettar@gmail.com>2016-09-29 19:37:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-02 18:14:03 +0300
commit6c5d28f523665a38672b27f603bef43bf21560ea (patch)
tree0f24a9f4ae0fc30738988462ab0ff6b9ad681c9f /drivers/staging
parent6d81bf25506a70f4e66826d5cb35f1ca07147499 (diff)
downloadlinux-6c5d28f523665a38672b27f603bef43bf21560ea.tar.xz
staging: rts5208: Replace explicit NULL comparison
Replace explicit NULL comparison to resolve checkpatch issues. Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rts5208/rtsx_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c
index d11b173acdfb..becb4bba166c 100644
--- a/drivers/staging/rts5208/rtsx_scsi.c
+++ b/drivers/staging/rts5208/rtsx_scsi.c
@@ -1397,7 +1397,7 @@ static int trace_msg_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip)
buf_len = 4 + ((2 + MSG_FUNC_LEN + MSG_FILE_LEN + TIME_VAL_LEN) *
TRACE_ITEM_CNT);
- if ((scsi_bufflen(srb) < buf_len) || (scsi_sglist(srb) == NULL)) {
+ if ((scsi_bufflen(srb) < buf_len) || !scsi_sglist(srb)) {
set_sense_type(chip, SCSI_LUN(srb),
SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR);
rtsx_trace(chip);