diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index f2f51e0333eb..8c73bb4e0a2f 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -1029,6 +1029,10 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) | |||
1029 | case 0x09: /* self test in progress */ | 1029 | case 0x09: /* self test in progress */ |
1030 | action = ACTION_DELAYED_RETRY; | 1030 | action = ACTION_DELAYED_RETRY; |
1031 | break; | 1031 | break; |
1032 | default: | ||
1033 | description = "Device not ready"; | ||
1034 | action = ACTION_FAIL; | ||
1035 | break; | ||
1032 | } | 1036 | } |
1033 | } else { | 1037 | } else { |
1034 | description = "Device not ready"; | 1038 | description = "Device not ready"; |
@@ -1054,7 +1058,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) | |||
1054 | /* Give up and fail the remainder of the request */ | 1058 | /* Give up and fail the remainder of the request */ |
1055 | if (!(req->cmd_flags & REQ_QUIET)) { | 1059 | if (!(req->cmd_flags & REQ_QUIET)) { |
1056 | if (description) | 1060 | if (description) |
1057 | scmd_printk(KERN_INFO, cmd, "%s", | 1061 | scmd_printk(KERN_INFO, cmd, "%s\n", |
1058 | description); | 1062 | description); |
1059 | scsi_print_result(cmd); | 1063 | scsi_print_result(cmd); |
1060 | if (driver_byte(result) & DRIVER_SENSE) | 1064 | if (driver_byte(result) & DRIVER_SENSE) |