staging: rts5208: Replace explicit NULL comparison
authorNamrata A Shettar <namrataashettar@gmail.com>
Thu, 29 Sep 2016 16:37:39 +0000 (22:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:14:03 +0000 (17:14 +0200)
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>
drivers/staging/rts5208/rtsx_scsi.c

index d11b173acdfb1fde1b3dc56b31d9649e7927805e..becb4bba166c98a2fe8d0aa57b4d1a9f7cf4d99a 100644 (file)
@@ -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);