diff options
author | Jouni Malinen <j@w1.fi> | 2015-07-18 15:09:57 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-07-18 16:06:34 (GMT) |
commit | c715d5c36cace1c86ef5077e970119fe2980760a (patch) | |
tree | 5e92e2a42cc1b74c4066e00ce6b903ed36cf89cf /src | |
parent | ca73f7d2d0481edfcd61fe6bcb7e90744711b39a (diff) | |
download | hostap-c715d5c36cace1c86ef5077e970119fe2980760a.zip hostap-c715d5c36cace1c86ef5077e970119fe2980760a.tar.gz hostap-c715d5c36cace1c86ef5077e970119fe2980760a.tar.bz2 |
FST: Remove unreachable code in fst_session_handle_tear_down()
fst_session_is_in_progress() is already checked as part of
fst_find_session_in_progress() before calling
fst_session_handle_action(). This is the only call path that can reach
fst_session_handle_tear_down() and as such, fst_session_is_in_progress()
cannot return 0 here.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r-- | src/fst/fst_session.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/fst/fst_session.c b/src/fst/fst_session.c index 10fb247..2f42b12 100644 --- a/src/fst/fst_session.c +++ b/src/fst/fst_session.c @@ -615,11 +615,6 @@ static void fst_session_handle_tear_down(struct fst_session *s, }, }; - if (!fst_session_is_in_progress(s)) { - fst_printf_session(s, MSG_WARNING, "no FST Setup to tear down"); - return; - } - if (plen < sizeof(*td)) { fst_printf_session(s, MSG_WARNING, "Too short FST Tear Down dropped"); |