[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1458416227.4228.4.camel@perches.com>
Date: Sat, 19 Mar 2016 12:37:07 -0700
From: Joe Perches <joe@...ches.com>
To: Parth Sane <laerdevstudios@...il.com>, gregkh@...uxfoundation.org
Cc: brcnakalin@...il.com, shraddha.6596@...il.com,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: netlogic: Fixed alignment of parantheseis
checkpatch warning
On Sat, 2016-03-19 at 18:35 +0000, Parth Sane wrote:
> Fixed alignment of paranthesis as per checkpatch.
Please run your proposed patches through checkpatch.
> diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c
[]
> @@ -121,9 +121,7 @@ static struct platform_device *gmac_controller2_init(void *gmac0_addr)
> ndata1.tx_stnid[mac] = FMN_STNID_GMAC1_TX0 + mac;
> ndata1.phy_addr[mac] = mac + 4 + 0x10;
>
> - xlr_resource_init(&xlr_net1_res[mac * 2],
> - xlr_gmac_offsets[mac + 4],
> - xlr_gmac_irqs[mac + 4]);
> + xlr_resource_init(&xlr_net1_res[mac * 2], xlr_gmac_offsets[mac + 4], xlr_gmac_irqs[mac + 4]);
More typical is to avoid exceeding 80 columns
and wrap this line like:
xlr_resource_init(&xlr_net1_res[mac * 2],
xlr_gmac_offsets[mac + 4],
xlr_gmac_irqs[mac + 4]);
Indenting the 2nd and 3rd lines with 4 tabs and 2 spaces
Powered by blists - more mailing lists