diff mbox series

[4/5] eap-mschapv2: remove unneeded initialization

Message ID 20240304164846.1783148-4-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [1/5] client: remove unneeded initialization | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood March 4, 2024, 4:48 p.m. UTC
---
 src/eap-mschapv2.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/src/eap-mschapv2.c b/src/eap-mschapv2.c
index 7f71cc82..1639f578 100644
--- a/src/eap-mschapv2.c
+++ b/src/eap-mschapv2.c
@@ -445,7 +445,6 @@  static int eap_mschapv2_check_settings(struct l_settings *settings,
 	if (!identity) {
 		secret = l_queue_find(secrets, eap_secret_info_match, setting);
 		if (secret) {
-			identity = l_strdup(secret->value);
 			password = l_strdup(secret->value +
 						strlen(secret->value) + 1);