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:
Jouni Malinen 2017-01-08 14:43:48 +02:00
parent 9d6eaad6b8
commit 2901bc2725

View file

@ -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) {