trivial code cleanup
authorJohn Crispin <blogic@openwrt.org>
Tue, 27 Aug 2013 11:40:22 +0000 (13:40 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 3 Sep 2013 17:44:01 +0000 (19:44 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
instance.c

index e263b84f90c64684463f64035474a1848b145023..d9530e5e7e0f19c02133c1347d176c2ca53992cf 100644 (file)
@@ -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)