forked from luck/tmp_suning_uos_patched
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 <masahiroy@kernel.org>
This commit is contained in:
parent
cfc6eea9f6
commit
644a4b6cec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user