From: Jouni Malinen Date: Sun, 7 Dec 2014 16:20:23 +0000 (+0200) Subject: Remove unnecessary ctrl_iface cmd check X-Git-Tag: hostap_2_4~891 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d02dcb28bc4d38715a48535311b777658514bec0;p=thirdparty%2Fhostap.git Remove unnecessary ctrl_iface cmd check This pointer cannot be NULL sicne it is called only from this file and with a valid pointer to the received command. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 2259a1a82..33da50ed4 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -2003,10 +2003,6 @@ static int wpa_supplicant_ctrl_iface_log_level(struct wpa_supplicant *wpa_s, char *pos, *end, *stamp; int ret; - if (cmd == NULL) { - return -1; - } - /* cmd: "LOG_LEVEL []" */ if (*cmd == '\0') { pos = buf;