Skip to content

Commit 415a132

Browse files
GustavoARSilvaklassert
authored andcommitted
xfrm_policy: use true and false for boolean values
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]>
1 parent 5211fcf commit 415a132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/xfrm/xfrm_policy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ static void xfrm_pcpu_work_fn(struct work_struct *work)
17401740
void xfrm_policy_cache_flush(void)
17411741
{
17421742
struct xfrm_dst *old;
1743-
bool found = 0;
1743+
bool found = false;
17441744
int cpu;
17451745

17461746
might_sleep();

0 commit comments

Comments
 (0)