Received: by 10.223.185.116 with SMTP id b49csp3723941wrg; Tue, 13 Feb 2018 06:51:07 -0800 (PST) X-Google-Smtp-Source: AH8x227N1JtfvXTv6M9eipzNAe9VJUTrH3Lt0cTAcIUGniCiBtCXka0BifkYkx8UGmzLd07G5Bex X-Received: by 10.99.179.77 with SMTP id x13mr1187722pgt.135.1518533467070; Tue, 13 Feb 2018 06:51:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518533467; cv=none; d=google.com; s=arc-20160816; b=mKudDMPQpDSqMo1gvE9oKMRO3rWtEExZ0fOUcRaNlwetv68AYHrf020MfU2ciQUxBi utrE0kPL+QrvZUvXnaJuPrDav+HQFRUMld+Unsp8kqKUOtrfr9tm7vhdBg27N8A4a9MP O3K5TpoqywJX5r0e0KgKd/euPAw9gpIGPmBFvQEy15WzEQSTyH3+4Wpgz/oEidffU3D6 zZnwv4JDiFmq2Fmkc9t8EAinocrgONAHLlzZiVvqX8b47x4QW5jFARorJlVAgeRMtV8f Mf/vvxbCyyNERYnb6NzEG8NvQjxlySRY2fEQzRk7+iOHZ2imyBrgDN5UXLJRn0uM4d/+ KCMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=aCLvT0KsTaPVYNH973UpGSZAyPuQYI082tqJImMxv90=; b=EZTzVCe3KLJuKn6gG2TE5nzdUwIz3LGfxgYVugefXkHwJ3/HdbNVNX7r9VkFXdqoFb gJea+AFjNm3NTMIKtdZBQ1tPvInQm1UgXcmkTlnBz6dd4AOA9gXZrzPOHlb0j47YR6MV +VHRaWFeeSbK4o2vdVuUu5mQ3IfJAEyDKplWFD+SSYkYn5NPm+0plgRaJ34LOTF0Qe7E 3frZBhphXwTYrzAPjT8LQsSQRHTv1bZp4WosZBErebdeg3abI1fUSNzAiC8pkGKrXuuh Qe1DW0wKECIdGVbN39kSaOPKpcvUh7WplnqczmtyHnhU9kEhXdA8q8HnrYMdyywMvGFN zEaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a28si2895872pfl.54.2018.02.13.06.50.51; Tue, 13 Feb 2018 06:51:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935456AbeBMOuJ (ORCPT + 99 others); Tue, 13 Feb 2018 09:50:09 -0500 Received: from gateway23.websitewelcome.com ([192.185.48.71]:41397 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935427AbeBMOuG (ORCPT ); Tue, 13 Feb 2018 09:50:06 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 8F476F9A3 for ; Tue, 13 Feb 2018 08:26:00 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id lbWyeNZQIBUMKlbWyePhD4; Tue, 13 Feb 2018 08:26:00 -0600 Received: from [189.175.4.238] (port=33028 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1elbWx-003GnQ-UL; Tue, 13 Feb 2018 08:26:00 -0600 Date: Tue, 13 Feb 2018 08:25:57 -0600 From: "Gustavo A. R. Silva" To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] netfilter: ipt_ah: return boolean instead of integer Message-ID: <20180213142557.GA9008@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.175.4.238 X-Source-L: No X-Exim-ID: 1elbWx-003GnQ-UL X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.175.4.238]:33028 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 10 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return statements in functions returning bool should use true/false instead of 1/0. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/ipv4/netfilter/ipt_ah.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/netfilter/ipt_ah.c b/net/ipv4/netfilter/ipt_ah.c index a787d07..7c6c20e 100644 --- a/net/ipv4/netfilter/ipt_ah.c +++ b/net/ipv4/netfilter/ipt_ah.c @@ -47,7 +47,7 @@ static bool ah_mt(const struct sk_buff *skb, struct xt_action_param *par) */ pr_debug("Dropping evil AH tinygram.\n"); par->hotdrop = true; - return 0; + return false; } return spi_match(ahinfo->spis[0], ahinfo->spis[1], -- 2.7.4