Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c5d28f5 authored by Namrata A Shettar's avatar Namrata A Shettar Committed by Greg Kroah-Hartman
Browse files

staging: rts5208: Replace explicit NULL comparison



Replace explicit NULL comparison to resolve checkpatch issues.

Signed-off-by: default avatarNamrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d81bf25
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) *
	buf_len = 4 + ((2 + MSG_FUNC_LEN + MSG_FILE_LEN + TIME_VAL_LEN) *
		TRACE_ITEM_CNT);
		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),
		set_sense_type(chip, SCSI_LUN(srb),
			SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR);
			SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR);
		rtsx_trace(chip);
		rtsx_trace(chip);