mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
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>
This commit is contained in:
parent
b3df7836e8
commit
8b4a148842
@ -1111,10 +1111,7 @@ static Boolean
|
|||||||
ieee802_1x_mka_sak_use_body_present(
|
ieee802_1x_mka_sak_use_body_present(
|
||||||
struct ieee802_1x_mka_participant *participant)
|
struct ieee802_1x_mka_participant *participant)
|
||||||
{
|
{
|
||||||
if (participant->to_use_sak)
|
return participant->to_use_sak;
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user