(OSK) Cleanup conditionals in menu_common.c

This commit is contained in:
twinaphex 2013-11-16 15:56:52 +01:00
parent 6828183b64
commit c062f36059

View File

@ -994,14 +994,14 @@ static int menu_iterate_func(void *data, unsigned action)
#ifdef HAVE_OSK
// process pending osk init callback
if (g_extern.osk.cb_init != NULL)
if (g_extern.osk.cb_init)
{
if (g_extern.osk.cb_init(driver.osk_data))
g_extern.osk.cb_init = NULL;
}
// process pending osk callback
if (g_extern.osk.cb_callback != NULL)
if (g_extern.osk.cb_callback)
{
if (g_extern.osk.cb_callback(driver.osk_data))
g_extern.osk.cb_callback = NULL;