From 8193e01e5b889ee3ce9c24dc73b5d338ef5f6701 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 28 Dec 2014 13:03:08 +0200 Subject: [PATCH] D-Bus(old): Remove unnecessary wpa_supplicant_state_txt() check This function cannot return NULL. Signed-off-by: Jouni Malinen --- wpa_supplicant/dbus/dbus_old.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wpa_supplicant/dbus/dbus_old.c b/wpa_supplicant/dbus/dbus_old.c index 85d8a787a..a86d39f45 100644 --- a/wpa_supplicant/dbus/dbus_old.c +++ b/wpa_supplicant/dbus/dbus_old.c @@ -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,