From 8b4a14884275418b561c30747e3831bcc185644a Mon Sep 17 00:00:00 2001 From: Sabrina Dubroca Date: Fri, 12 Aug 2016 15:07:33 +0200 Subject: [PATCH] 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 --- src/pae/ieee802_1x_kay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c index 55b70a3cb..3a93323e3 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; }