Fix Dead Store (Dead Assignment) found by Clang Analyzer

---
 src/wtp/wtp_dfa.c | 2 --
 1 file changed, 2 deletions(-)
This commit is contained in:
Alexis La Goutte 2015-01-22 10:19:38 +01:00
parent e5f1fbd992
commit d12d15d67d
1 changed files with 0 additions and 2 deletions

View File

@ -379,10 +379,8 @@ int wtp_dfa_running(void) {
/* Check is handshake complete */
if ((oldaction == CAPWAP_DTLS_ACTION_HANDSHAKE) && (g_wtp.dtls.action == CAPWAP_DTLS_ACTION_DATA)) {
if (g_wtp.state == CAPWAP_DTLS_CONNECT_STATE) {
check = CAPWAP_NONE_PACKET;
wtp_send_join();
} else {
check = CAPWAP_WRONG_PACKET;
wtp_teardown_connection();
}
}