From: Michael Heimpold Date: Tue, 1 Jan 2019 23:44:53 +0000 (+0100) Subject: procd: simplify code in procd_inittab_run X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7fb2e1dfa2214a9b35fa955e98a386e2f3ccb730;p=oweals%2Fprocd.git 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 --- 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; } }