]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sd: remove scsi_print_sense() in sd_done()
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:42 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:15:56 +0000 (11:15 +0100)
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>
drivers/scsi/sd.c

index cfba74cd8e8b1754e8b1412c65a560a0451ff470..52b40b1e8c4521f29bafc841326cc84d53338697 100644 (file)
@@ -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;