chiark / gitweb /
systemctl: no need to check this explicitly, we already checked it a few lines up...
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jan 2013 23:52:45 +0000 (00:52 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 17 Jan 2013 23:52:45 +0000 (00:52 +0100)
src/systemctl/systemctl.c

index 852c4d1a860d55f8c5d7da01b4525f17c5041719..de1a022ae36174e19f4372bcab2da35c10390876 100644 (file)
@@ -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) {