From: John Crispin Date: Tue, 27 Aug 2013 11:40:22 +0000 (+0200) Subject: trivial code cleanup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed0464dbda4125cc857d8a06b84fa695d0b29251;p=oweals%2Fprocd.git trivial code cleanup Signed-off-by: John Crispin --- diff --git a/instance.c b/instance.c index e263b84..d9530e5 100644 --- a/instance.c +++ b/instance.c @@ -319,9 +319,9 @@ instance_config_parse(struct service_instance *in) in->command = cur; in->trigger = tb[INSTANCE_ATTR_TRIGGER]; - if (in->trigger) { + if (in->trigger) trigger_add(in->trigger, in); - } + if ((cur = tb[INSTANCE_ATTR_NICE])) { in->nice = (int8_t) blobmsg_get_u32(cur); if (in->nice < -20 || in->nice > 20)