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: Hannes Reinecke <hare@suse.de> Reviewed-by: Robert Elliott <elliott@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
639ae4d033
commit
ad3819c09b
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user