mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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>
This commit is contained in:
parent
941cd3ec70
commit
137b293963
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user