[PATCH] init/main.c: remove unreachable check in obsolete_checksetup()

From: Sang-Heon Jeon

Date: Tue Sep 22 2026 - 10:14:48 EST


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 <ekffu200098@xxxxxxxxx>
---
init/main.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/init/main.c b/init/main.c
index d276e194393b..e7a84799639a 100644
--- a/init/main.c
+++ b/init/main.c
@@ -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
--
2.43.0