From: Masahiro Yamada Date: Mon, 13 Apr 2020 15:35:42 +0000 (+0900) Subject: kconfig: do not assign a variable in the return statement X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2202d84127694886dc60a242c85c9d459a2acefc;p=carl9170fw.git kconfig: do not assign a variable in the return statement I am not a big fan of doing assignment in a return statement. Split it into two lines. Signed-off-by: Masahiro Yamada Signed-off-by: Christian Lamparter --- diff --git a/config/menu.c b/config/menu.c index e436ba4..a5fbd6c 100644 --- a/config/menu.c +++ b/config/menu.c @@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym) struct menu *menu_add_menu(void) { last_entry_ptr = ¤t_entry->list; - return current_menu = current_entry; + current_menu = current_entry; + return current_menu; } void menu_end_menu(void)