projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3df783
)
mka: Simplify ieee802_1x_mka_sak_use_body_present()
author
Sabrina Dubroca
<sd@queasysnail.net>
Fri, 12 Aug 2016 13:07:33 +0000
(15:07 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 28 Aug 2016 17:46:19 +0000
(20:46 +0300)
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>
src/pae/ieee802_1x_kay.c
patch
|
blob
|
history
diff --git
a/src/pae/ieee802_1x_kay.c
b/src/pae/ieee802_1x_kay.c
index
55b70a3
..
3a93323
100644
(file)
--- 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;
}