From 7ce56032516896498bfd3d6a2891e53cf7cd31fd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 13 Jan 2016 22:09:08 +0200 Subject: [PATCH] EAP-WSC peer: Remove unused state values The FRAG_ACK and DONE state were not used at all, so remove them. Signed-off-by: Jouni Malinen --- src/eap_peer/eap_wsc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/eap_peer/eap_wsc.c b/src/eap_peer/eap_wsc.c index 7ac99c7ce..0d31a5d70 100644 --- a/src/eap_peer/eap_wsc.c +++ b/src/eap_peer/eap_wsc.c @@ -17,7 +17,7 @@ struct eap_wsc_data { - enum { WAIT_START, MESG, FRAG_ACK, WAIT_FRAG_ACK, DONE, FAIL } state; + enum { WAIT_START, MESG, WAIT_FRAG_ACK, FAIL } state; int registrar; struct wpabuf *in_buf; struct wpabuf *out_buf; @@ -36,12 +36,8 @@ static const char * eap_wsc_state_txt(int state) return "WAIT_START"; case MESG: return "MESG"; - case FRAG_ACK: - return "FRAG_ACK"; case WAIT_FRAG_ACK: return "WAIT_FRAG_ACK"; - case DONE: - return "DONE"; case FAIL: return "FAIL"; default: