From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] smc: return boolean instead of integer in using_ipsec References: <20180118233323.GA22539@embeddedor.com> From: Ursula Braun Date: Fri, 19 Jan 2018 09:35:59 +0100 MIME-Version: 1.0 In-Reply-To: <20180118233323.GA22539@embeddedor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Message-Id: <0eadb528-9d82-3e0d-dc21-cd61244900e5@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: "Gustavo A. R. Silva" , "David S. Miller" Cc: linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org List-ID: On 01/19/2018 12:33 AM, Gustavo A. R. Silva wrote: > 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/smc/smc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/smc/smc.h b/net/smc/smc.h > index 0bee9d1..ef13af4 100644 > --- a/net/smc/smc.h > +++ b/net/smc/smc.h > @@ -258,7 +258,7 @@ static inline bool using_ipsec(struct smc_sock *smc) > #else > static inline bool using_ipsec(struct smc_sock *smc) > { > - return 0; > + return false; > } > #endif > Gustavo, thanks for reporting, but your improvement seems to be incomplete. Besides changing line 260 of net/smc/smc.h, line 255 should be adapted the same way. Will you come up with a second patch version here? Kind regards, Ursula Braun