From: Steffen Klassert Subject: [PATCH 4/4] xfrm: fix boolean assignment in xfrm_get_type_offload Date: Wed, 24 Jan 2018 10:47:13 +0100 Message-ID: <20180124094713.27913-5-steffen.klassert@secunet.com> References: <20180124094713.27913-1-steffen.klassert@secunet.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Herbert Xu , Steffen Klassert , To: David Miller Return-path: Received: from a.mx.secunet.com ([62.96.220.36]:60902 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932886AbeAXJrT (ORCPT ); Wed, 24 Jan 2018 04:47:19 -0500 In-Reply-To: <20180124094713.27913-1-steffen.klassert@secunet.com> Sender: netdev-owner@vger.kernel.org List-ID: From: "Gustavo A. R. Silva" 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 --- net/xfrm/xfrm_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ xfrm_get_type_offload(u8 proto, unsigned short family, bool try_load) if (!type && try_load) { request_module("xfrm-offload-%d-%d", family, proto); - try_load = 0; + try_load = false; goto retry; } -- 2.14.1