init/main.c: remove unreachable check in obsolete_checksetup()
PATCH 1/1 init/main.c: remove unreachable check in obsolete_checksetup()
Since commit 1ecfea06386c ("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.
Signed-off-by Sang-Heon Jeon <[email protected]>
--- init/main.c | 4 ---- 1 file changed, 4 deletions(-)
init/main.c +0 -4
@@ -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; }
base-commit: 277efa234c9a49b6cb9aca1cb9d75138ca392eae
Signature · 1 line
2.43.0