53c700: remove scsi_print_sense() usage
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:49 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:00 +0000 (11:16 +0100)
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>
drivers/scsi/53c700.c

index 68bf423008a4a317627143df33e09495705e0720..179a24ec75613704da0267d0bae698b16904637f 100644 (file)
@@ -592,19 +592,14 @@ NCR_700_scsi_done(struct NCR_700_Host_Parameters *hostdata,
        hostdata->cmd = NULL;
 
        if(SCp != NULL) {
-               struct NCR_700_command_slot *slot = 
+               struct NCR_700_command_slot *slot =
                        (struct NCR_700_command_slot *)SCp->host_scribble;
-               
+
                dma_unmap_single(hostdata->dev, slot->pCmd,
                                 MAX_COMMAND_SIZE, DMA_TO_DEVICE);
                if (slot->flags == NCR_700_FLAG_AUTOSENSE) {
                        char *cmnd = NCR_700_get_sense_cmnd(SCp->device);
-#ifdef NCR_700_DEBUG
-                       printk(" ORIGINAL CMD %p RETURNED %d, new return is %d sense is\n",
-                              SCp, SCp->cmnd[7], result);
-                       scsi_print_sense(SCp);
 
-#endif
                        dma_unmap_single(hostdata->dev, slot->dma_handle,
                                         SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE);
                        /* restore the old result if the request sense was
This page took 0.028264 seconds and 5 git commands to generate.