chiark / gitweb /
core: serialize/deserialize bus subscribers
[elogind.git] / src / core / unit.c
index 447f2015ab5b50315272d806a6c86e6717c6608e..70cdd3d943dbcabc91e38d63343793566fd1f77c 100644 (file)
@@ -2128,7 +2128,8 @@ int unit_serialize(Unit *u, FILE *f, FDSet *fds, bool serialize_jobs) {
         if (!unit_can_serialize(u))
                 return 0;
 
-        if ((r = UNIT_VTABLE(u)->serialize(u, f, fds)) < 0)
+        r = UNIT_VTABLE(u)->serialize(u, f, fds);
+        if (r < 0)
                 return r;