summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-05-21 14:15:24 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-05-21 14:15:24 +0000
commitab222c170562ba2f89827c2e3185ae359eface76 (patch)
tree3dfcdf8a5b7a267b153c72533a894d4aaa47fe8e /firmware
parenta968ddbb39e246e6eec744fff4b7650dfa8e2791 (diff)
downloadrockbox-ab222c170562ba2f89827c2e3185ae359eface76.tar.gz
rockbox-ab222c170562ba2f89827c2e3185ae359eface76.zip
Simplify some redundant boolean expressions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/system.c2
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/backlight-meg-fx.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 290452b0af..87fc40850f 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -107,7 +107,7 @@ void cpu_boost_(bool on_off, char* location, int line)
107 { 107 {
108 int message = (cpu_boost_first+cpu_boost_calls_count)%MAX_BOOST_LOG; 108 int message = (cpu_boost_first+cpu_boost_calls_count)%MAX_BOOST_LOG;
109 snprintf(cpu_boost_calls[message], MAX_PATH, 109 snprintf(cpu_boost_calls[message], MAX_PATH,
110 "%c %s:%d",on_off==true?'B':'U',location,line); 110 "%c %s:%d",on_off?'B':'U',location,line);
111 cpu_boost_calls_count++; 111 cpu_boost_calls_count++;
112 } 112 }
113#else 113#else
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/backlight-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/backlight-meg-fx.c
index 97372acdd5..f3d9aac168 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/backlight-meg-fx.c
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/backlight-meg-fx.c
@@ -323,7 +323,7 @@ static void __backlight_dim(bool dim_now)
323{ 323{
324 /* dont let the interrupt tick happen */ 324 /* dont let the interrupt tick happen */
325 backlight_control = BACKLIGHT_CONTROL_IDLE; 325 backlight_control = BACKLIGHT_CONTROL_IDLE;
326 backlight_target = (dim_now == true) ? 0 : _backlight_brightness; 326 backlight_target = dim_now ? 0 : _backlight_brightness;
327 if(backlight_target==0 && _backlight_brightness==0) 327 if(backlight_target==0 && _backlight_brightness==0)
328 { 328 {
329 if(dim_now == false) 329 if(dim_now == false)
@@ -361,7 +361,7 @@ static inline void __buttonlight_off(void)
361static void __buttonlight_dim(bool dim_now) 361static void __buttonlight_dim(bool dim_now)
362{ 362{
363 buttonlight_control = BUTTONLIGHT_CONTROL_IDLE; 363 buttonlight_control = BUTTONLIGHT_CONTROL_IDLE;
364 buttonlight_target = (dim_now == true) ? 0 : buttonlight_brightness; 364 buttonlight_target = dim_now ? 0 : buttonlight_brightness;
365 if(buttonlight_target==0 && buttonlight_brightness==0) 365 if(buttonlight_target==0 && buttonlight_brightness==0)
366 { 366 {
367 if(dim_now == false) 367 if(dim_now == false)