diff options
author | Hannes Reinecke <hare@suse.de> | 2014-10-24 08:26:49 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:16:00 -0500 |
commit | 7d170907191ff42d1624fc4a55c2f2400ffec07a (patch) | |
tree | 8a77107175e90ead8b75792dfef03b1902c985d7 /drivers/scsi/53c700.c | |
parent | e04ca9078ef5d32951a68b1e97aef4b059d68fdc (diff) |
53c700: remove scsi_print_sense() usage
The 53c700 driver would be using scsi_print_sense() in a debug
statement, which was never compiled in. Plus the same information
can get retrieved with logging. So remove it.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/53c700.c')
-rw-r--r-- | drivers/scsi/53c700.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/scsi/53c700.c b/drivers/scsi/53c700.c index 68bf423008a4..179a24ec7561 100644 --- a/drivers/scsi/53c700.c +++ b/drivers/scsi/53c700.c | |||
@@ -592,19 +592,14 @@ NCR_700_scsi_done(struct NCR_700_Host_Parameters *hostdata, | |||
592 | hostdata->cmd = NULL; | 592 | hostdata->cmd = NULL; |
593 | 593 | ||
594 | if(SCp != NULL) { | 594 | if(SCp != NULL) { |
595 | struct NCR_700_command_slot *slot = | 595 | struct NCR_700_command_slot *slot = |
596 | (struct NCR_700_command_slot *)SCp->host_scribble; | 596 | (struct NCR_700_command_slot *)SCp->host_scribble; |
597 | 597 | ||
598 | dma_unmap_single(hostdata->dev, slot->pCmd, | 598 | dma_unmap_single(hostdata->dev, slot->pCmd, |
599 | MAX_COMMAND_SIZE, DMA_TO_DEVICE); | 599 | MAX_COMMAND_SIZE, DMA_TO_DEVICE); |
600 | if (slot->flags == NCR_700_FLAG_AUTOSENSE) { | 600 | if (slot->flags == NCR_700_FLAG_AUTOSENSE) { |
601 | char *cmnd = NCR_700_get_sense_cmnd(SCp->device); | 601 | char *cmnd = NCR_700_get_sense_cmnd(SCp->device); |
602 | #ifdef NCR_700_DEBUG | ||
603 | printk(" ORIGINAL CMD %p RETURNED %d, new return is %d sense is\n", | ||
604 | SCp, SCp->cmnd[7], result); | ||
605 | scsi_print_sense(SCp); | ||
606 | 602 | ||
607 | #endif | ||
608 | dma_unmap_single(hostdata->dev, slot->dma_handle, | 603 | dma_unmap_single(hostdata->dev, slot->dma_handle, |
609 | SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); | 604 | SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); |
610 | /* restore the old result if the request sense was | 605 | /* restore the old result if the request sense was |