From ab222c170562ba2f89827c2e3185ae359eface76 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Thu, 21 May 2009 14:15:24 +0000 Subject: Simplify some redundant boolean expressions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21013 a1c6a512-1295-4272-9138-f99709370657 --- apps/action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 8a72dcdce7..21198889d2 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 -- cgit v1.2.3