From 5668e1b89c28310a324dc628fef5c579564e6f7c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 26 Aug 2014 21:22:01 +0200 Subject: [PATCH] Cleanups - remove extraneous else --- driver.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/driver.c b/driver.c index 45236d8280..8d49b6e1ea 100644 --- a/driver.c +++ b/driver.c @@ -423,12 +423,11 @@ bool driver_camera_start(void) { if (g_settings.camera.allow) return driver.camera->start(driver.camera_data); - else - msg_queue_push(g_extern.msg_queue, "Camera is explicitly disabled.\n", 1, 180); + + msg_queue_push(g_extern.msg_queue, "Camera is explicitly disabled.\n", 1, 180); return false; } - else - return false; + return false; } void driver_camera_stop(void) @@ -532,12 +531,11 @@ bool driver_location_start(void) { if (g_settings.location.allow) return driver.location->start(driver.location_data); - else - msg_queue_push(g_extern.msg_queue, "Location is explicitly disabled.\n", 1, 180); + + msg_queue_push(g_extern.msg_queue, "Location is explicitly disabled.\n", 1, 180); return false; } - else - return false; + return false; } void driver_location_stop(void)