From: Jouni Malinen Date: Sun, 8 Jan 2017 12:43:48 +0000 (+0200) Subject: bgscan: Remove unnecessary NULL check X-Git-Tag: hostap_2_7~1785 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2901bc2725aca3f465856ae5520eb4b4fa6ebe54;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/bgscan.c b/wpa_supplicant/bgscan.c index 798b43c3f..1ea640114 100644 --- a/wpa_supplicant/bgscan.c +++ b/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) {