]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - hostapd/ctrl_iface.c
Remove unnecessary NULL check from LOG_LEVEL handler
[thirdparty/hostap.git] / hostapd / ctrl_iface.c
index 835feb052a7e42c455e2e791f1b573cdb778e117..306c53ca3b987c397e1242d564b2adcfbbd11a6b 100644 (file)
@@ -1992,7 +1992,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;