diff options
| author | Jouni Malinen <j@w1.fi> | 2015-07-18 18:09:57 +0300 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:19:51 -0600 |
| commit | 17baa937821255dd6228ffaae71af50ac0769b56 (patch) | |
| tree | ab97befb9568b68891b061a025c2ebc49dfd20e7 /src | |
| parent | 3748533d46ccec5f6efed1f8cf13b16807def904 (diff) | |
| download | android_external_wpa_supplicant_8-17baa937821255dd6228ffaae71af50ac0769b56.tar.gz android_external_wpa_supplicant_8-17baa937821255dd6228ffaae71af50ac0769b56.tar.bz2 android_external_wpa_supplicant_8-17baa937821255dd6228ffaae71af50ac0769b56.zip | |
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.
Change-Id: Icaa4baea2b9ba0840586eeec96a281586b5ef0ad
Signed-off-by: Jouni Malinen <j@w1.fi>
Git-commit: c715d5c36cace1c86ef5077e970119fe2980760a
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-Fixed: 891455
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 10fb247e..2f42b12d 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"); |
