diff options
author | Namrata A Shettar <namrataashettar@gmail.com> | 2016-09-29 22:07:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-02 17:14:03 +0200 |
commit | 6c5d28f523665a38672b27f603bef43bf21560ea (patch) | |
tree | 0f24a9f4ae0fc30738988462ab0ff6b9ad681c9f /drivers/staging/rts5208 | |
parent | 6d81bf25506a70f4e66826d5cb35f1ca07147499 (diff) | |
download | linux-6c5d28f523665a38672b27f603bef43bf21560ea.tar.gz linux-6c5d28f523665a38672b27f603bef43bf21560ea.tar.bz2 linux-6c5d28f523665a38672b27f603bef43bf21560ea.zip |
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/rts5208')
-rw-r--r-- | drivers/staging/rts5208/rtsx_scsi.c | 2 |
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); |