mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
D-Bus(old): Remove unnecessary wpa_supplicant_state_txt() check
This function cannot return NULL. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
62856ad989
commit
8193e01e5b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user