Commit 644a4b6c authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent cfc6eea9
...@@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym) ...@@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym)
struct menu *menu_add_menu(void) struct menu *menu_add_menu(void)
{ {
last_entry_ptr = &current_entry->list; last_entry_ptr = &current_entry->list;
return current_menu = current_entry; current_menu = current_entry;
return current_menu;
} }
void menu_end_menu(void) void menu_end_menu(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment