diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-30 01:38:36 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-31 14:28:36 -0400 |
commit | 4dd1de72e8e7ece77e8831e77eea650de404af75 (patch) | |
tree | 11193d7a3798b1bf4f592304af1e8efe9d46f770 /src/timedate/timedated.c | |
parent | a7edaadd78271e1c35ff9032f068cb08de645437 (diff) |
Remove some dead code
Based on coverity report.
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r-- | src/timedate/timedated.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 16fffd0844..1d4d73911e 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -367,8 +367,6 @@ static int read_ntp(DBusConnection *bus) { goto finish; } - if (reply) - dbus_message_unref(reply); reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error); if (!reply) { if (streq(error.name, "org.freedesktop.DBus.Error.FileNotFound")) { @@ -450,8 +448,6 @@ static int start_ntp(DBusConnection *bus, DBusError *error) { goto finish; } - if (reply) - dbus_message_unref(reply); reply = dbus_connection_send_with_reply_and_block(bus, m, -1, error); if (!reply) { if (streq(error->name, "org.freedesktop.DBus.Error.FileNotFound") || @@ -540,8 +536,6 @@ static int enable_ntp(DBusConnection *bus, DBusError *error) { } } - if (reply) - dbus_message_unref(reply); reply = dbus_connection_send_with_reply_and_block(bus, m, -1, error); if (!reply) { if (streq(error->name, "org.freedesktop.DBus.Error.FileNotFound")) { |