summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-14 00:35:42 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-12 13:28:30 +0900
commit644a4b6cecc2ae3a8a840bb3606edd99af94e972 (patch)
treed768588c3c22d358617a72721c547368d63c308c /scripts/kconfig
parentcfc6eea9f6af84e838e28be57b03be5502c4a02e (diff)
downloadlinux-644a4b6cecc2ae3a8a840bb3606edd99af94e972.tar.bz2
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>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index e436ba44c9c5..a5fbd6ccc006 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -65,7 +65,8 @@ void menu_add_entry(struct symbol *sym)
struct menu *menu_add_menu(void)
{
last_entry_ptr = &current_entry->list;
- return current_menu = current_entry;
+ current_menu = current_entry;
+ return current_menu;
}
void menu_end_menu(void)