mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
6d81bf2550
commit
6c5d28f523
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue