From 138263c3235382d23961d82afe5dd312feeba25c Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 26 Jul 2014 00:04:51 +0000 Subject: [PATCH] Internal REQUEST SENSE: NO SENSE is also valid sense git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5704 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 4a8236f98..ccc3aa834 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -5091,7 +5091,7 @@ static void scst_complete_request_sense(struct scst_cmd *req_cmd) len = scst_get_buf_full(req_cmd, &buf); if (scsi_status_is_good(req_cmd->status) && (len > 0) && - scst_sense_valid(buf) && !scst_no_sense(buf)) { + scst_sense_valid(buf)) { TRACE(TRACE_SCSI|TRACE_MGMT_DEBUG, "REQUEST SENSE %p returned " "valid sense", req_cmd); PRINT_BUFF_FLAG(TRACE_SCSI|TRACE_MGMT_DEBUG, "Sense", buf, len);