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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-07 18:20:23 +02:00
parent feb795d6d3
commit d02dcb28bc

View file

@ -2003,10 +2003,6 @@ static int wpa_supplicant_ctrl_iface_log_level(struct wpa_supplicant *wpa_s,
char *pos, *end, *stamp; char *pos, *end, *stamp;
int ret; int ret;
if (cmd == NULL) {
return -1;
}
/* cmd: "LOG_LEVEL [<level>]" */ /* cmd: "LOG_LEVEL [<level>]" */
if (*cmd == '\0') { if (*cmd == '\0') {
pos = buf; pos = buf;