From 7ab39894eca93717122e49bbaadfba4cb540bf5d Mon Sep 17 00:00:00 2001 From: Alan Stern Date: Mon, 8 Dec 2003 01:45:04 -0800 Subject: [PATCH] [PATCH] USB storage: Remove dead code from debug.c This patch removes an uncalled subroutine from debug.c. I only noticed it when tracking down scatter-gather usage; there didn't seem to be any reason to repair it since it wasn't being used anywhere. --- drivers/usb/storage/debug.c | 59 ------------------------------------- drivers/usb/storage/debug.h | 1 - 2 files changed, 60 deletions(-) diff --git a/drivers/usb/storage/debug.c b/drivers/usb/storage/debug.c index 1a41b08972a26..d4f278ca703bf 100644 --- a/drivers/usb/storage/debug.c +++ b/drivers/usb/storage/debug.c @@ -150,65 +150,6 @@ void usb_stor_show_command(Scsi_Cmnd *srb) US_DEBUGPX("\n"); } -void usb_stor_print_Scsi_Cmnd(Scsi_Cmnd *cmd) -{ - int i=0, bufferSize = cmd->request_bufflen; - u8 *buffer = cmd->request_buffer; - struct scatterlist *sg = (struct scatterlist*)cmd->request_buffer; - - US_DEBUGP("Dumping information about %p.\n", cmd); - US_DEBUGP("cmd->cmnd[0] value is %d.\n", cmd->cmnd[0]); - US_DEBUGP("(MODE_SENSE is %d and MODE_SENSE_10 is %d)\n", - MODE_SENSE, MODE_SENSE_10); - - US_DEBUGP("buffer is %p with length %d.\n", buffer, bufferSize); - for (i=0; iuse_sg ); - for (i=0; iuse_sg; i++) { - char *adr = sg_address(sg[i]); - - US_DEBUGP("Length of scatterlist %d is %d.\n",i,sg[i].length); - US_DEBUGP("%02x %02x %02x %02x %02x %02x %02x %02x\n" - "%02x %02x %02x %02x %02x %02x %02x %02x\n", - adr[0], - adr[1], - adr[2], - adr[3], - adr[4], - adr[5], - adr[6], - adr[7], - adr[8], - adr[9], - adr[10], - adr[11], - adr[12], - adr[13], - adr[14], - adr[15]); - } -} - void usb_stor_show_sense( unsigned char key, unsigned char asc, diff --git a/drivers/usb/storage/debug.h b/drivers/usb/storage/debug.h index cde713a3bc6a6..d5d6b3c76a064 100644 --- a/drivers/usb/storage/debug.h +++ b/drivers/usb/storage/debug.h @@ -53,7 +53,6 @@ #ifdef CONFIG_USB_STORAGE_DEBUG void usb_stor_show_command(Scsi_Cmnd *srb); -void usb_stor_print_Scsi_Cmnd( Scsi_Cmnd* cmd ); void usb_stor_show_sense( unsigned char key, unsigned char asc, unsigned char ascq ); #define US_DEBUGP(x...) printk( KERN_DEBUG USB_STORAGE x ) -- 2.53.0