]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/dbus-timer.c
Bug #944: Deletion of unnecessary checks before a few calls of systemd functions
[thirdparty/systemd.git] / src / core / dbus-timer.c
index 74a9914358e8e2974437316dcb01d2021ba74ea3..8ea2cf84a493906b932f2461e3c03acc1da4633a 100644 (file)
@@ -252,8 +252,7 @@ static int bus_timer_set_transient_property(
 
                         v = new0(TimerValue, 1);
                         if (!v) {
-                                if (c)
-                                        calendar_spec_free(c);
+                                calendar_spec_free(c);
                                 return -ENOMEM;
                         }