Skip to contentSkip to conversation

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

PATCH Applied Sang-Heon Jeon 1 participant 1 message Sep 22

lore
Share & tools
lore
#0 lore raw

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.

---
 init/main.c | 4 ----
 1 file changed, 4 deletions(-)
init/main.c +0 -4
index d276e194393b..e7a84799639a 100644
@@ -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