Skip to content

Commit

Permalink
xfrm_policy: use true and false for boolean values
Browse files Browse the repository at this point in the history
Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
  • Loading branch information
GustavoARSilva authored and klassert committed Mar 7, 2018
1 parent 5211fcf commit 415a132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ static void xfrm_pcpu_work_fn(struct work_struct *work)
void xfrm_policy_cache_flush(void)
{
struct xfrm_dst *old;
bool found = 0;
bool found = false;
int cpu;

might_sleep();
Expand Down

0 comments on commit 415a132

Please sign in to comment.