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:
parent
feb795d6d3
commit
d02dcb28bc
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue