aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-08-21 17:02:10 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-21 21:22:12 (GMT)
commit137b293963c2782e86154ad4c689a686ab0c13c3 (patch)
treecbfd2cfc234a255ed5c806fdc5302bcb99659514 /wpa_supplicant/ctrl_iface.c
parent941cd3ec7042438ac98ae48212340238173275f9 (diff)
downloadhostap-137b293963c2782e86154ad4c689a686ab0c13c3.zip
hostap-137b293963c2782e86154ad4c689a686ab0c13c3.tar.gz
hostap-137b293963c2782e86154ad4c689a686ab0c13c3.tar.bz2
Remove unnecessary NULL check from LOG_LEVEL handler
cmd cannot be NULL here, so there is no need to check it before calling os_strlen(). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 4d4d51a..62375e1 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -2168,7 +2168,7 @@ static int wpa_supplicant_ctrl_iface_log_level(struct wpa_supplicant *wpa_s,
}
}
- if (cmd && os_strlen(cmd)) {
+ if (os_strlen(cmd)) {
int level = str_to_debug_level(cmd);
if (level < 0)
return -1;