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:
Sang-Heon Jeon 2026-09-22 22:26:27 +09:00 committed by Andrew Morton
parent 8535c259c8
commit aabe6e1b36

View File

@ -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;
}