service: remove leftover lines from previous commit
authorFelix Fietkau <nbd@nbd.name>
Tue, 17 Dec 2024 19:17:21 +0000 (20:17 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 17 Dec 2024 19:17:21 +0000 (20:17 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
service/service.c

index f64b634a6a83841a58b153b59acc9c826ec74e6c..de14aa39ba02225cdfca00b056a342869c22cce9 100644 (file)
@@ -163,10 +163,6 @@ service_update(struct service *s, struct blob_attr **tb, bool add)
                s->trigger = NULL;
        }
 
-       if (s->data) {
-               s->data = NULL;
-       }
-
        service_validate_del(s);
 
        if (tb[SERVICE_SET_AUTOSTART] && !blobmsg_get_bool(tb[SERVICE_SET_AUTOSTART]))