]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
D-Bus(old): Remove unnecessary wpa_supplicant_state_txt() check
authorJouni Malinen <j@w1.fi>
Sun, 28 Dec 2014 11:03:08 +0000 (13:03 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:05 +0000 (15:49 +0200)
This function cannot return NULL.

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

index 85d8a787ae8b3676bcfec8caeb9681401a6706db..a86d39f4596349b2d3be329b1d9e875d30b2b236 100644 (file)
@@ -434,12 +434,6 @@ void wpa_supplicant_dbus_notify_state_change(struct wpa_supplicant *wpa_s,
 
        new_state_str = wpa_supplicant_state_txt(new_state);
        old_state_str = wpa_supplicant_state_txt(old_state);
-       if (new_state_str == NULL || old_state_str == NULL) {
-               wpa_printf(MSG_ERROR,
-                          "dbus: wpa_supplicant_dbus_notify_state_change: "
-                          "Could not convert state strings");
-               goto out;
-       }
 
        if (!dbus_message_append_args(_signal,
                                      DBUS_TYPE_STRING, &new_state_str,