summaryrefslogtreecommitdiff
path: root/firmware/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/storage.c')
-rw-r--r--firmware/storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/storage.c b/firmware/storage.c
index 7ef7428854..e0b491a5f9 100644
--- a/firmware/storage.c
+++ b/firmware/storage.c
@@ -192,7 +192,7 @@ int storage_num_drives(void)
192 192
193int storage_driver_type(int drive) 193int storage_driver_type(int drive)
194{ 194{
195 if (drive >= num_drives) 195 if ((unsigned int)drive >= num_drives)
196 return -1; 196 return -1;
197 197
198 unsigned int bit = (storage_drivers[drive] & DRIVER_MASK)>>DRIVER_OFFSET; 198 unsigned int bit = (storage_drivers[drive] & DRIVER_MASK)>>DRIVER_OFFSET;