mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
bgscan: Remove unnecessary NULL check
The name argument to bgscan_init() cannot be NULL since the only caller already checks this before the call. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9d6eaad6b8
commit
2901bc2725
@ -34,8 +34,6 @@ int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
|
|||||||
const struct bgscan_ops *ops = NULL;
|
const struct bgscan_ops *ops = NULL;
|
||||||
|
|
||||||
bgscan_deinit(wpa_s);
|
bgscan_deinit(wpa_s);
|
||||||
if (name == NULL)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
params = os_strchr(name, ':');
|
params = os_strchr(name, ':');
|
||||||
if (params == NULL) {
|
if (params == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user