From: Sabrina Dubroca Date: Mon, 15 Aug 2016 09:43:42 +0000 (+0200) Subject: mka: Simplify ieee802_1x_mka_dist_sak_body_present() X-Git-Tag: hostap_2_6~79 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=05283e7a6f71fb036957eb088b68e4f94ad833ac 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 --- diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c index d29187d..88fb9ce 100644 --- a/src/pae/ieee802_1x_kay.c +++ b/src/pae/ieee802_1x_kay.c @@ -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; }