mka: Simplify ieee802_1x_mka_dist_sak_body_present()

No need for an if statement to figure out Boolean return value.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
This commit is contained in:
Sabrina Dubroca 2016-08-15 11:43:42 +02:00 committed by Jouni Malinen
parent 87b19c8d88
commit 05283e7a6f

View file

@ -1395,10 +1395,7 @@ static Boolean
ieee802_1x_mka_dist_sak_body_present(
struct ieee802_1x_mka_participant *participant)
{
if (!participant->to_dist_sak || !participant->new_key)
return FALSE;
return TRUE;
return participant->to_dist_sak && participant->new_key;
}