Browse Source

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>
Jouni Malinen 8 years ago
parent
commit
2901bc2725
1 changed files with 0 additions and 2 deletions
  1. 0 2
      wpa_supplicant/bgscan.c

+ 0 - 2
wpa_supplicant/bgscan.c

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