Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933380AbdCaPpJ (ORCPT ); Fri, 31 Mar 2017 11:45:09 -0400 Received: from smtprelay0169.hostedemail.com ([216.40.44.169]:55692 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933217AbdCaPpI (ORCPT ); Fri, 31 Mar 2017 11:45:08 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2198:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3350:3622:3865:3868:4321:5007:10004:10400:10848:11026:11232:11473:11657:11658:11914:12043:12296:12438:12740:12760:12895:13069:13255:13311:13357:13439:14181:14659:14721:21080:21434:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: wash40_e780788b6c1b X-Filterd-Recvd-Size: 1669 Message-ID: <1490975097.27353.10.camel@perches.com> Subject: Re: [PATCH V2 net-next 18/18] net: hns: Some checkpatch.pl script & warning fixes From: Joe Perches To: Salil Mehta , davem@davemloft.net Cc: yisen.zhuang@huawei.com, mehta.salil.lnk@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com Date: Fri, 31 Mar 2017 08:44:57 -0700 In-Reply-To: <20170331112032.4692-19-salil.mehta@huawei.com> References: <20170331112032.4692-1-salil.mehta@huawei.com> <20170331112032.4692-19-salil.mehta@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 729 Lines: 20 On Fri, 2017-03-31 at 12:20 +0100, Salil Mehta wrote: > This patch fixes some checkpatch.pl script caught errors and > warnings during the compilation time. [] > diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c [] > @@ -512,7 +512,8 @@ static void hns_nic_reuse_page(struct sk_buff *skb, int i, > int last_offset; > bool twobufs; > > - twobufs = ((PAGE_SIZE < 8192) && hnae_buf_size(ring) == HNS_BUFFER_SIZE_2048); > + twobufs = ((PAGE_SIZE < 8192) && hnae_buf_size(ring) > + == HNS_BUFFER_SIZE_2048); This would read nicer without splitting a comparison test onto multiple lines twobufs = PAGE_SIZE < 8192 && hnae_buf_size(ring) == HNS_BUFFER_SIZE_2048;