From: Hannes Reinecke Date: Fri, 24 Oct 2014 12:26:42 +0000 (+0200) Subject: sd: remove scsi_print_sense() in sd_done() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad3819c09b55f9edb145f1d367678403666d857a;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Robert Elliott Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index cfba74cd8e8b..52b40b1e8c45 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -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;