From 7fb2e1dfa2214a9b35fa955e98a386e2f3ccb730 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Wed, 2 Jan 2019 00:44:53 +0100 Subject: [PATCH] procd: simplify code in procd_inittab_run This is a trial to make it more obvious what the historically grown code is actually doing. Signed-off-by: Michael Heimpold --- inittab.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/inittab.c b/inittab.c index 1cfef2b..45118f4 100644 --- a/inittab.c +++ b/inittab.c @@ -276,12 +276,9 @@ void procd_inittab_run(const char *handler) list_for_each_entry(a, &actions, list) if (!strcmp(a->handler->name, handler)) { - if (a->handler->multi) { - a->handler->cb(a); - continue; - } a->handler->cb(a); - break; + if (!a->handler->multi) + break; } } -- 2.25.1