scsi: remove scsi_print_status()
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:53 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:02 +0000 (11:16 +0100)
Last caller is gone, so we can 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/constants.c
include/scsi/scsi_dbg.h

index 94c0642e28742aae191c59e0116c48aa8d0d41d6..885c559164d04029274a9be6339e8a8453a5e932 100644 (file)
@@ -433,41 +433,6 @@ void scsi_print_command(struct scsi_cmnd *cmd)
 }
 EXPORT_SYMBOL(scsi_print_command);
 
-/**
- *     scsi_print_status - print scsi status description
- *     @scsi_status: scsi status value
- *
- *     If the status is recognized, the description is printed.
- *     Otherwise "Unknown status" is output. No trailing space.
- *     If CONFIG_SCSI_CONSTANTS is not set, then print status in hex
- *     (e.g. "0x2" for Check Condition).
- **/
-void
-scsi_print_status(unsigned char scsi_status) {
-#ifdef CONFIG_SCSI_CONSTANTS
-       const char * ccp;
-
-       switch (scsi_status) {
-       case 0:    ccp = "Good"; break;
-       case 0x2:  ccp = "Check Condition"; break;
-       case 0x4:  ccp = "Condition Met"; break;
-       case 0x8:  ccp = "Busy"; break;
-       case 0x10: ccp = "Intermediate"; break;
-       case 0x14: ccp = "Intermediate-Condition Met"; break;
-       case 0x18: ccp = "Reservation Conflict"; break;
-       case 0x22: ccp = "Command Terminated"; break;   /* obsolete */
-       case 0x28: ccp = "Task set Full"; break;        /* was: Queue Full */
-       case 0x30: ccp = "ACA Active"; break;
-       case 0x40: ccp = "Task Aborted"; break;
-       default:   ccp = "Unknown status";
-       }
-       printk(KERN_INFO "%s", ccp);
-#else
-       printk(KERN_INFO "0x%0x", scsi_status);
-#endif
-}
-EXPORT_SYMBOL(scsi_print_status);
-
 #ifdef CONFIG_SCSI_CONSTANTS
 
 struct error_info {
index 6cbd179a17cc9acbc133316d97b0f5da7feae03f..386474ee53a144ffdf4762000ffe8787a93f883b 100644 (file)
@@ -19,7 +19,6 @@ extern void __scsi_print_sense(const struct scsi_device *, const char *name,
                               int sense_len);
 extern void scsi_show_result(int);
 extern void scsi_print_result(struct scsi_cmnd *);
-extern void scsi_print_status(unsigned char);
 extern const char *scsi_sense_key_string(unsigned char);
 extern const char *scsi_extd_sense_format(unsigned char, unsigned char,
                                          const char **);
This page took 0.028247 seconds and 5 git commands to generate.