Cleanups - remove extraneous else
This commit is contained in:
parent
7ce5ebb927
commit
5668e1b89c
6
driver.c
6
driver.c
|
@ -423,11 +423,10 @@ bool driver_camera_start(void)
|
||||||
{
|
{
|
||||||
if (g_settings.camera.allow)
|
if (g_settings.camera.allow)
|
||||||
return driver.camera->start(driver.camera_data);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -532,11 +531,10 @@ bool driver_location_start(void)
|
||||||
{
|
{
|
||||||
if (g_settings.location.allow)
|
if (g_settings.location.allow)
|
||||||
return driver.location->start(driver.location_data);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue