diff options
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 8a72dcdce7..21198889d2 100644 --- a/apps/action.c +++ b/apps/action.c | |||
@@ -167,7 +167,7 @@ static int get_action_worker(int context, int timeout, | |||
167 | #endif | 167 | #endif |
168 | #ifndef HAS_BUTTON_HOLD | 168 | #ifndef HAS_BUTTON_HOLD |
169 | screen_has_lock = ((context & ALLOW_SOFTLOCK) == ALLOW_SOFTLOCK); | 169 | screen_has_lock = ((context & ALLOW_SOFTLOCK) == ALLOW_SOFTLOCK); |
170 | if (screen_has_lock && (keys_locked == true)) | 170 | if (screen_has_lock && keys_locked) |
171 | { | 171 | { |
172 | if (button == unlock_combo) | 172 | if (button == unlock_combo) |
173 | { | 173 | { |
@@ -267,7 +267,7 @@ bool action_userabort(int timeout) | |||
267 | #ifndef HAS_BUTTON_HOLD | 267 | #ifndef HAS_BUTTON_HOLD |
268 | bool is_keys_locked(void) | 268 | bool is_keys_locked(void) |
269 | { | 269 | { |
270 | return (screen_has_lock && (keys_locked == true)); | 270 | return (screen_has_lock && keys_locked); |
271 | } | 271 | } |
272 | #endif | 272 | #endif |
273 | 273 | ||