]> git.ipfire.org Git - thirdparty/hostap.git/commit
FST: Remove unreachable code in fst_session_handle_tear_down()
authorJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 15:09:57 +0000 (18:09 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 16:06:34 +0000 (19:06 +0300)
commitc715d5c36cace1c86ef5077e970119fe2980760a
tree5e92e2a42cc1b74c4066e00ce6b903ed36cf89cf
parentca73f7d2d0481edfcd61fe6bcb7e90744711b39a
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>
src/fst/fst_session.c