summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-01-02 16:03:30 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-01-02 16:03:30 +0000
commit799a0a5cd4001954d8e0e855af4236e1f7b0898d (patch)
treec9d94e6fd588e1cfd2a97729ad05b486f6f30fe5 /firmware
parentd03768bc14da12f940f01993bb6df1ffd8935fe7 (diff)
downloadrockbox-799a0a5cd4001954d8e0e855af4236e1f7b0898d.tar.gz
rockbox-799a0a5cd4001954d8e0e855af4236e1f7b0898d.tar.bz2
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')
-rw-r--r--firmware/drivers/serial.c2
-rw-r--r--firmware/drivers/tuner/ipod_remote_tuner.c4
-rw-r--r--firmware/usbstack/usb_storage.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/serial.c b/firmware/drivers/serial.c
index 30e5f33900..eb2df9890b 100644
--- a/firmware/drivers/serial.c
+++ b/firmware/drivers/serial.c
@@ -416,7 +416,7 @@ void SERIAL0(void)
}
}
bool pkt = iap_getc(temp);
- if(newpkt == true && pkt == false)
+ if(newpkt && !pkt)
autobaud = 0; /* Found good baud */
newpkt = pkt;
}
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c
index 07a5eeb9a6..82357593d4 100644
--- a/firmware/drivers/tuner/ipod_remote_tuner.c
+++ b/firmware/drivers/tuner/ipod_remote_tuner.c
@@ -300,7 +300,7 @@ int ipod_rmt_tuner_set(int setting, int value)
case RADIO_FREQUENCY:
{
rmt_tuner_set_freq(value);
- if (reply_timeout() == true)
+ if (reply_timeout())
return 0;
break;
}
@@ -326,7 +326,7 @@ int ipod_rmt_tuner_set(int setting, int value)
else
rmt_tuner_scan(1);
- if (reply_timeout() == true)
+ if (reply_timeout())
return 0;
radio_tuned = 0;
}
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)
bool canrelease=true;
int i;
for(i=0;i<storage_num_drives();i++) {
- if(ejected[i]==false && locked[i]==true) {
+ if(!ejected[i] && locked[i]) {
canrelease=false;
break;
}