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
1 changed files with 0 additions and 2 deletions
|
@ -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 a new issue