diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2009-05-21 14:15:24 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-05-21 14:15:24 +0000 |
| commit | ab222c170562ba2f89827c2e3185ae359eface76 (patch) | |
| tree | 3dfcdf8a5b7a267b153c72533a894d4aaa47fe8e /apps/action.c | |
| parent | a968ddbb39e246e6eec744fff4b7650dfa8e2791 (diff) | |
| download | rockbox-ab222c170562ba2f89827c2e3185ae359eface76.zip rockbox-ab222c170562ba2f89827c2e3185ae359eface76.tar.gz rockbox-ab222c170562ba2f89827c2e3185ae359eface76.tar.bz2 rockbox-ab222c170562ba2f89827c2e3185ae359eface76.tar.xz | |
Simplify some redundant boolean expressions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.c')
| -rw-r--r-- | apps/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/action.c b/apps/action.c index 8a72dcd..2119888 100644 --- a/apps/action.c +++ b/apps/action.c @@ -167,7 +167,7 @@ static int get_action_worker(int context, int timeout, #endif #ifndef HAS_BUTTON_HOLD screen_has_lock = ((context & ALLOW_SOFTLOCK) == ALLOW_SOFTLOCK); - if (screen_has_lock && (keys_locked == true)) + if (screen_has_lock && keys_locked) { if (button == unlock_combo) { @@ -267,7 +267,7 @@ bool action_userabort(int timeout) #ifndef HAS_BUTTON_HOLD bool is_keys_locked(void) { - return (screen_has_lock && (keys_locked == true)); + return (screen_has_lock && keys_locked); } #endif |