From 85e0ab9a8e2dd110ed18c2806c31f37beff37c2b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Feb 2016 05:23:33 +0100 Subject: [PATCH] Cleanups --- menu/menu_driver.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/menu/menu_driver.c b/menu/menu_driver.c index b308408b1b..a82e8c2cc0 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -296,14 +296,11 @@ int menu_driver_bind_init(menu_file_list_cbs_t *cbs, const char *elem0, const char *elem1, uint32_t label_hash, uint32_t menu_label_hash) { - int ret = 0; - - if (menu_driver_ctx && menu_driver_ctx->bind_init) - ret = menu_driver_ctx->bind_init(cbs, path, label, - type, idx, elem0, elem1, - label_hash, menu_label_hash); - - return ret; + if (!menu_driver_ctx || !menu_driver_ctx->bind_init) + return 0; + return menu_driver_ctx->bind_init(cbs, path, label, + type, idx, elem0, elem1, + label_hash, menu_label_hash); } int menu_driver_iterate(enum menu_action action)