Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932934AbcCNUx0 (ORCPT ); Mon, 14 Mar 2016 16:53:26 -0400 Received: from mail-bl2nam02on0041.outbound.protection.outlook.com ([104.47.38.41]:34237 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752874AbcCNUxW (ORCPT ); Mon, 14 Mar 2016 16:53:22 -0400 X-Greylist: delayed 321 seconds by postgrey-1.27 at vger.kernel.org; Mon, 14 Mar 2016 16:53:21 EDT Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; ettus.com; dkim=none (message not signed) header.d=none;ettus.com; dmarc=bestguesspass action=none header.from=xilinx.com; Subject: Re: [PATCH 2/5] net: macb: Fix coding style warnings To: Moritz Fischer , References: <1457896247-25934-1-git-send-email-moritz.fischer@ettus.com> <1457896247-25934-3-git-send-email-moritz.fischer@ettus.com> CC: , , , , , From: Michal Simek Message-ID: <56E724BB.5030600@xilinx.com> Date: Mon, 14 Mar 2016 21:53:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457896247-25934-3-git-send-email-moritz.fischer@ettus.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22192.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(164054003)(189002)(24454002)(2950100001)(50986999)(5008740100001)(2906002)(92566002)(6806005)(77096005)(87936001)(65816999)(76176999)(36386004)(59896002)(47776003)(63266004)(1096002)(64126003)(23746002)(586003)(50466002)(1220700001)(86362001)(4326007)(83506001)(19580405001)(230700001)(33656002)(106466001)(189998001)(65806001)(11100500001)(87266999)(19580395003)(65956001)(54356999)(4001350100001)(5001770100001)(36756003)(80316001)(81166005)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2NAM02HT077;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-MS-Office365-Filtering-Correlation-Id: 496299ee-e34d-45d9-de17-08d34c4aac8f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:BL2NAM02HT077; X-Microsoft-Antispam-PRVS: <29b7af8ed3d444c193d8f3c6735bfa86@BL2NAM02HT077.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(5005006)(13017025)(8121501046)(3002001)(10201501046);SRVR:BL2NAM02HT077;BCL:0;PCL:0;RULEID:;SRVR:BL2NAM02HT077; X-Forefront-PRVS: 0881A7A935 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2016 20:53:19.3897 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT077 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1432 Lines: 40 On 13.3.2016 20:10, 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, as well as a dangling else. > > Signed-off-by: Moritz Fischer > --- > drivers/net/ethernet/cadence/macb.c | 101 +++++++++++++++--------------------- > 1 file changed, 43 insertions(+), 58 deletions(-) > > diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c > index 4370f37..c2d31c5 100644 > --- a/drivers/net/ethernet/cadence/macb.c > +++ b/drivers/net/ethernet/cadence/macb.c > @@ -58,8 +58,7 @@ > > #define GEM_MTU_MIN_SIZE 68 > > -/* > - * Graceful stop timeouts in us. We should allow up to > +/* Graceful stop timeouts in us. We should allow up to > * 1 frame time (10 Mbits/s, full-duplex, ignoring collisions) > */ > #define MACB_HALT_TIMEOUT 1230 > @@ -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 TBH: I would rather see this converting to kernel-doc format instead of using this networking block. Also splitting this to more patches will be better. Just by categories but that's just my opinion. Thanks, Michal