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>
@@ -34,8 +34,6 @@ int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
const struct bgscan_ops *ops = NULL;
bgscan_deinit(wpa_s);
- if (name == NULL)
- return -1;
params = os_strchr(name, ':');
if (params == NULL) {