mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] init/main.c: remove unreachable check in obsolete_checksetup()
@ 2026-09-22 13:26 Sang-Heon Jeon
  0 siblings, 0 replies; only message in thread
From: Sang-Heon Jeon @ 2026-09-22 13:26 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-22 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 13:26 [PATCH] init/main.c: remove unreachable check in obsolete_checksetup() Sang-Heon Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®