diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-29 23:36:11 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-29 23:36:11 -0400 |
commit | f3d60aea34de60c4371c04fa1b8482ca71a64b53 (patch) | |
tree | da90e55f804b4d9a9e93e48ff21416f9182801ca /firmware/storage.c | |
parent | 17a007bc60c69d6ea471a96a465e04ba4ac2d00f (diff) | |
download | rockbox-f3d60aea34de60c4371c04fa1b8482ca71a64b53.tar.gz rockbox-f3d60aea34de60c4371c04fa1b8482ca71a64b53.tar.bz2 rockbox-f3d60aea34de60c4371c04fa1b8482ca71a64b53.zip |
Hopefully fix most of the errors and warnings from the last push
Change-Id: I1a466b2d55f120796910039a0296ca324c58e891
Diffstat (limited to 'firmware/storage.c')
-rw-r--r-- | firmware/storage.c | 2 |
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) int storage_driver_type(int drive) { - if (drive >= num_drives) + if ((unsigned int)drive >= num_drives) return -1; unsigned int bit = (storage_drivers[drive] & DRIVER_MASK)>>DRIVER_OFFSET; |