aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-08-12 13:07:33 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-28 17:46:19 (GMT)
commit8b4a14884275418b561c30747e3831bcc185644a (patch)
tree6f6d2909a3890aade2706de080d78bfb3de05a47 /src
parentb3df7836e8254d5868d4d23c26544b13293ced57 (diff)
downloadhostap-8b4a14884275418b561c30747e3831bcc185644a.zip
hostap-8b4a14884275418b561c30747e3831bcc185644a.tar.gz
hostap-8b4a14884275418b561c30747e3831bcc185644a.tar.bz2
mka: Simplify ieee802_1x_mka_sak_use_body_present()
to_use_sak is a Boolean variable, so there is no need for an if statement to figure out whether to return TRUE or FALSE. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'src')
-rw-r--r--src/pae/ieee802_1x_kay.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c
index 55b70a3..3a93323 100644
--- a/src/pae/ieee802_1x_kay.c
+++ b/src/pae/ieee802_1x_kay.c
@@ -1111,10 +1111,7 @@ static Boolean
ieee802_1x_mka_sak_use_body_present(
struct ieee802_1x_mka_participant *participant)
{
- if (participant->to_use_sak)
- return TRUE;
- else
- return FALSE;
+ return participant->to_use_sak;
}