From d02dcb28bc4d38715a48535311b777658514bec0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 7 Dec 2014 18:20:23 +0200 Subject: [PATCH] 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 --- wpa_supplicant/ctrl_iface.c | 4 ---- 1 file changed, 4 deletions(-) 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;