projects
/
carl9170fw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3505601
)
kconfig: do not assign a variable in the return statement
author
Masahiro Yamada
<masahiroy@kernel.org>
Mon, 13 Apr 2020 15:35:42 +0000
(
00:35
+0900)
committer
Christian Lamparter
<chunkeey@gmail.com>
Fri, 5 Feb 2021 10:55:28 +0000
(11:55 +0100)
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>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/menu.c
patch
|
blob
|
history
diff --git
a/config/menu.c
b/config/menu.c
index e436ba44c9c5fd89ddb7c3152a4b6969d9fe9a91..a5fbd6ccc006e05308f0ef24cf3cb1545a55cb15 100644
(file)
--- a/
config/menu.c
+++ b/
config/menu.c
@@
-65,7
+65,8
@@
void menu_add_entry(struct symbol *sym)
struct menu *menu_add_menu(void)
{
last_entry_ptr = ¤t_entry->list;
- return current_menu = current_entry;
+ current_menu = current_entry;
+ return current_menu;
}
void menu_end_menu(void)