summaryrefslogtreecommitdiffstats
path: root/apps/action.c
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 /apps/action.c
parenta968ddbb39e246e6eec744fff4b7650dfa8e2791 (diff)
downloadrockbox-ab222c170562ba2f89827c2e3185ae359eface76.tar.gz
rockbox-ab222c170562ba2f89827c2e3185ae359eface76.tar.bz2
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 'apps/action.c')
-rw-r--r--apps/action.c4
1 files changed, 2 insertions, 2 deletions
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