mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
init/main.c: remove unreachable check in obsolete_checksetup()
Since commit 1ecfea0638 ("init.h: remove long-dead
__setup_null_param() macro"), .init.setup entries cannot have a NULL
setup_func.
So remove the NULL check.
No functional change.
Link: https://lore.kernel.org/20260922132630.177941-1-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
8535c259c8
commit
aabe6e1b36
|
|
@ -215,10 +215,6 @@ static bool __init obsolete_checksetup(char *line)
|
|||
* params and __setups of same names 8( */
|
||||
if (line[n] == '\0' || line[n] == '=')
|
||||
had_early_param = true;
|
||||
} else if (!p->setup_func) {
|
||||
pr_warn("Parameter %s is obsolete, ignored\n",
|
||||
p->str);
|
||||
return true;
|
||||
} else if (p->setup_func(line + n))
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user