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

Unified · Split

scripts/kconfig/menu.c+2−1
@@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym) · 64 unmodified lines
6565 struct menu *menu_add_menu(void)
6666 {
6767 last_entry_ptr = &current_entry->list;
68− return current_menu = current_entry;
68+ current_menu = current_entry;
69+ return current_menu;
6970 }
7071
7172 void menu_end_menu(void)