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:
parent
87b19c8d88
commit
05283e7a6f
1 changed files with 1 additions and 4 deletions
|
@ -1395,10 +1395,7 @@ static Boolean
|
||||||
ieee802_1x_mka_dist_sak_body_present(
|
ieee802_1x_mka_dist_sak_body_present(
|
||||||
struct ieee802_1x_mka_participant *participant)
|
struct ieee802_1x_mka_participant *participant)
|
||||||
{
|
{
|
||||||
if (!participant->to_dist_sak || !participant->new_key)
|
return participant->to_dist_sak && participant->new_key;
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue