summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-01-01 22:47:25 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-01-01 22:47:25 +0000
commit5c4ef78cc983212a0c2e0868929aa2b699855087 (patch)
tree6bf9a1e14b5aaf4961561673ee4ef364b3790562 /firmware
parente35a15cf54a104ff58ee889112d5040654f85ccc (diff)
downloadrockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.tar.gz
rockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.tar.bz2
rockbox-5c4ef78cc983212a0c2e0868929aa2b699855087.zip
Simplify some expressions using the ? operator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24136 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata_mmc.c2
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c
index 01b8a6f029..16d06584c5 100644
--- a/firmware/drivers/ata_mmc.c
+++ b/firmware/drivers/ata_mmc.c
@@ -816,7 +816,7 @@ void mmc_enable_monitoring(bool on)
bool mmc_detect(void)
{
- return adc_read(ADC_MMC_SWITCH) < 0x200 ? true : false;
+ return (adc_read(ADC_MMC_SWITCH) < 0x200);
}
bool mmc_touched(void)
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index 8d0dc042b9..99bf668ec4 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -359,7 +359,7 @@ static int sd_init_card(const int drive)
sd_parse_csd(&card_info[drive]);
#if defined(HAVE_MULTIDRIVE)
- hs_card = (card_info[drive].speed == 50000000) ? true : false;
+ hs_card = (card_info[drive].speed == 50000000);
#endif
/* Boost MCICLK to operating speed */