Parcourir la source

Interworking: Remove unnecessary NULL check

nai_realm_find_eap() is called only in cases where the cred pointer is
not NULL.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 10 ans
Parent
commit
5a5aab7f40
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      wpa_supplicant/interworking.c

+ 1 - 2
wpa_supplicant/interworking.c

@@ -649,8 +649,7 @@ static struct nai_realm_eap * nai_realm_find_eap(struct wpa_cred *cred,
 {
 	u8 e;
 
-	if (cred == NULL ||
-	    cred->username == NULL ||
+	if (cred->username == NULL ||
 	    cred->username[0] == '\0' ||
 	    ((cred->password == NULL ||
 	      cred->password[0] == '\0') &&