diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-02 16:03:30 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-02 16:03:30 +0000 |
commit | 799a0a5cd4001954d8e0e855af4236e1f7b0898d (patch) | |
tree | c9d94e6fd588e1cfd2a97729ad05b486f6f30fe5 /firmware/usbstack/usb_storage.c | |
parent | d03768bc14da12f940f01993bb6df1ffd8935fe7 (diff) | |
download | rockbox-799a0a5cd4001954d8e0e855af4236e1f7b0898d.tar.gz rockbox-799a0a5cd4001954d8e0e855af4236e1f7b0898d.zip |
Simplify some boolean expressions that compare directly against 'true'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24144 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 3f3baa383c..f84cd4eefe 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -356,7 +356,7 @@ void usb_storage_try_release_storage(void) | |||
356 | bool canrelease=true; | 356 | bool canrelease=true; |
357 | int i; | 357 | int i; |
358 | for(i=0;i<storage_num_drives();i++) { | 358 | for(i=0;i<storage_num_drives();i++) { |
359 | if(ejected[i]==false && locked[i]==true) { | 359 | if(!ejected[i] && locked[i]) { |
360 | canrelease=false; | 360 | canrelease=false; |
361 | break; | 361 | break; |
362 | } | 362 | } |