aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-08-21 20:02:10 +0300
committerSrinivas Dasari <dasaris@codeaurora.org>2015-10-27 15:26:48 +0530
commit90b94223625165c874c870394a26d89d9b18fc7b (patch)
treec2861ce04c7fa0b948fc2a9d2ae4318059f4170f /hostapd
parentdf108644a680552f7acf1e356632dc1fac3752e5 (diff)
downloadandroid_external_wpa_supplicant_8-90b94223625165c874c870394a26d89d9b18fc7b.tar.gz
android_external_wpa_supplicant_8-90b94223625165c874c870394a26d89d9b18fc7b.tar.bz2
android_external_wpa_supplicant_8-90b94223625165c874c870394a26d89d9b18fc7b.zip
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() CRs-Fixed: 891515 Git-repo: git://w1.fi/srv/git/hostap.git Git-commit: 137b293963c2782e86154ad4c689a686ab0c13c3 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Change-Id: I4246e0e7f037363c9059d1d3e1dbfabfbba4c347
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index ea03b1f6..da7f0b3c 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -1903,7 +1903,7 @@ static int hostapd_ctrl_iface_log_level(struct hostapd_data *hapd, char *cmd,
}
}
- if (cmd && os_strlen(cmd)) {
+ if (os_strlen(cmd)) {
int level = str_to_debug_level(cmd);
if (level < 0)
return -1;