diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-01-18 00:52:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-01-18 00:52:45 +0100 |
commit | 52a2ab41e029728ef0a4303d7aafc9d47f116004 (patch) | |
tree | a888cfe316dc8d855c5a1890fd2773d5d4317c59 /src/systemctl/systemctl.c | |
parent | 540e7dbe9edeb7a309a89c51f22d27e3a7cd6390 (diff) |
systemctl: no need to check this explicitly, we already checked it a few lines up anyway, so let's just assert
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r-- | src/systemctl/systemctl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 852c4d1a86..de1a022ae3 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -797,12 +797,7 @@ static int list_dependencies_get_dependencies(DBusConnection *bus, const char *n while (dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_INVALID) { const char *prop; - if (dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_DICT_ENTRY) { - log_error("Failed to parse reply."); - r = -EIO; - goto finish; - } - + assert(dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_DICT_ENTRY); dbus_message_iter_recurse(&sub, &sub2); if (bus_iter_get_basic_and_next(&sub2, DBUS_TYPE_STRING, &prop, true) < 0) { |