]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
D-Bus: Remove useless NULL check from static function
authorJouni Malinen <j@w1.fi>
Thu, 1 Jan 2015 00:13:27 +0000 (02:13 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:50:26 +0000 (22:50 +0200)
The entry argument cannot be NULL in this static function.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_dict_helpers.c

index ee1d94aa6d05bdd77e3b1e7ca289f55ea68867a3..98a82db74554fc28b7e6775bad63eb6266b48801 100644 (file)
@@ -951,8 +951,6 @@ static dbus_bool_t _wpa_dbus_dict_entry_get_array(
        DBusMessageIter iter_array;
 
        wpa_printf(MSG_MSGDUMP, "%s: array_type %c", __func__, array_type);
-       if (!entry)
-               return FALSE;
 
        dbus_message_iter_recurse(iter_dict_val, &iter_array);