aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r--drivers/scsi/scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index da95bce907dd..c59f31533ab4 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}