Commit ad3819c0 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Christoph Hellwig

sd: remove scsi_print_sense() in sd_done()

sd_done() was calling scsi_print_sense() for a sense code
of 'NO_SENSE'.
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarRobert Elliott <elliott@hp.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 639ae4d0
...@@ -1743,7 +1743,6 @@ static int sd_done(struct scsi_cmnd *SCpnt) ...@@ -1743,7 +1743,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)
* unknown amount of data was transferred so treat it as an * unknown amount of data was transferred so treat it as an
* error. * error.
*/ */
scsi_print_sense("sd", SCpnt);
SCpnt->result = 0; SCpnt->result = 0;
memset(SCpnt->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); memset(SCpnt->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment