Skip to content

Commit 644a4b6

Browse files
committed
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>
1 parent cfc6eea commit 644a4b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/kconfig/menu.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym)
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)

0 commit comments

Comments
 (0)