Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753143AbcCGRZx (ORCPT ); Mon, 7 Mar 2016 12:25:53 -0500 Received: from smtprelay0032.hostedemail.com ([216.40.44.32]:43972 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752427AbcCGRZn (ORCPT ); Mon, 7 Mar 2016 12:25:43 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3874:4250:4321:5007:6117:6119:6261:7903:10004:10400:10848:11026:11232:11657:11658:11914:12043:12296:12517:12519:12740:13069:13311:13357:13439:13894:13972:14659:14721:21080:21324:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: owner69_4e96258357443 X-Filterd-Recvd-Size: 2136 Message-ID: <1457371538.4085.16.camel@perches.com> Subject: Re: [PATCH 2/3] net: macb: Fix more coding style issues From: Joe Perches To: Moritz Fischer , nicolas.ferre@atmel.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 07 Mar 2016 09:25:38 -0800 In-Reply-To: <1457367460-9123-3-git-send-email-moritz.fischer@ettus.com> References: <1457367460-9123-1-git-send-email-moritz.fischer@ettus.com> <1457367460-9123-3-git-send-email-moritz.fischer@ettus.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1199 Lines: 38 On Mon, 2016-03-07 at 08:17 -0800, Moritz Fischer wrote: > This commit takes care of the coding style warnings > that are mostly due to a different comment style and > lines over 80 chars. [] > diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c [] > @@ -127,8 +126,7 @@ static void hw_writel(struct macb *bp, int offset, u32 value) > ? writel_relaxed(value, bp->regs + offset); > ?} > ? > -/* > - * Find the CPU endianness by using the loopback bit of NCR register. When the > +/* Find the CPU endianness by using the loopback bit of NCR register. When the > ? * CPU is in big endian we need to program swaped mode for management swaped/swapped typo @@ -945,6 +943,7 @@ static int macb_rx_frame(struct macb *bp, unsigned int first_frag, > ?static int macb_rx(struct macb *bp, int budget) > ?{ > ? int received = 0; > + int dropped; This is an unnecessary and unmentioned change. > ? unsigned int tail; > ? int first_frag = -1; > ? > @@ -968,7 +967,6 @@ static int macb_rx(struct macb *bp, int budget) > ? } > ? > ? if (ctrl & MACB_BIT(RX_EOF)) { > - int dropped; > ? BUG_ON(first_frag == -1); > ? > ? dropped = macb_rx_frame(bp, first_frag, tail); >