Cleanups - remove extraneous else
This commit is contained in:
parent
7ce5ebb927
commit
5668e1b89c
14
driver.c
14
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)
|
||||
|
|
Loading…
Reference in New Issue