diff options
-rw-r--r-- | drivers/scsi/scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 7a054f9d1ee3..a21642e32c42 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -128,7 +128,7 @@ const char * scsi_device_type(unsigned type) | |||
128 | return "Well-known LUN "; | 128 | return "Well-known LUN "; |
129 | if (type == 0x1f) | 129 | if (type == 0x1f) |
130 | return "No Device "; | 130 | return "No Device "; |
131 | if (type > ARRAY_SIZE(scsi_device_types)) | 131 | if (type >= ARRAY_SIZE(scsi_device_types)) |
132 | return "Unknown "; | 132 | return "Unknown "; |
133 | return scsi_device_types[type]; | 133 | return scsi_device_types[type]; |
134 | } | 134 | } |