ChangeSet 1.1504.2.14, 2003/12/08 17:45:04-08:00, stern@rowland.harvard.edu [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 -Nru a/drivers/usb/storage/debug.c b/drivers/usb/storage/debug.c --- a/drivers/usb/storage/debug.c Mon Dec 29 14:25:29 2003 +++ b/drivers/usb/storage/debug.c Mon Dec 29 14:25:29 2003 @@ -150,65 +150,6 @@ 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 -Nru a/drivers/usb/storage/debug.h b/drivers/usb/storage/debug.h --- a/drivers/usb/storage/debug.h Mon Dec 29 14:25:29 2003 +++ b/drivers/usb/storage/debug.h Mon Dec 29 14:25:29 2003 @@ -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 )