History

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.

Masahiro Yamada committed 6 years ago

Commit 644a4b61 parent cfc6eea1 file · +2 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/menu.c+2−1
@@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym) · 64 unmodified lines
65struct menu *menu_add_menu(void)65struct menu *menu_add_menu(void)
66{66{
67 last_entry_ptr = &current_entry->list;67 last_entry_ptr = &current_entry->list;
68 return current_menu = current_entry;68 current_menu = current_entry;
69 return current_menu;
69}70}
70 71
71void menu_end_menu(void)72void menu_end_menu(void)