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

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1743,7 +1743,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)
		 * unknown amount of data was transferred so treat it as an
		 * error.
		 */
		scsi_print_sense("sd", SCpnt);
		SCpnt->result = 0;
		memset(SCpnt->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
		break;