From: Gustavo A. R. Silva Date: Mon, 22 Jan 2018 22:34:09 +0000 (-0600) Subject: xfrm: fix boolean assignment in xfrm_get_type_offload X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=545d8ae7affff7fb4f8bfd327c7c7790056535c4;p=openwrt%2Fstaging%2Fblogic.git xfrm: fix boolean assignment in xfrm_get_type_offload Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Fixes: ffdb5211da1c ("xfrm: Auto-load xfrm offload modules") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Steffen Klassert --- diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 2d486492acdb..a3785f538018 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -317,7 +317,7 @@ retry: if (!type && try_load) { request_module("xfrm-offload-%d-%d", family, proto); - try_load = 0; + try_load = false; goto retry; }