]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unnecessary ctrl_iface cmd check
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 16:20:23 +0000 (18:20 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 09:07:56 +0000 (11:07 +0200)
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 <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index 2259a1a82d74cc10f7b3c6328723b368e52512dc..33da50ed4ad91a800be29e980106f91e5066db9f 100644 (file)
@@ -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 [<level>]" */
        if (*cmd == '\0') {
                pos = buf;