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
This commit is contained in:
Vladislav Bolkhovitin
2014-07-26 00:04:51 +00:00
parent 6ab72405fa
commit 138263c323
+1 -1
View File
@@ -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);