diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-27 13:40:22 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-09-03 19:44:01 +0200 |
commit | ed0464dbda4125cc857d8a06b84fa695d0b29251 (patch) | |
tree | 2e2e619302c27e8f00fc82857166c6de22edd494 | |
parent | f0b6ea93233ba5134311352595969797b00a98de (diff) | |
download | unitd-ed0464dbda4125cc857d8a06b84fa695d0b29251.tar unitd-ed0464dbda4125cc857d8a06b84fa695d0b29251.zip |
trivial code cleanup
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | instance.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |