From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
To: David Miller <davem@davemloft.net>
Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
w@1wt.eu, thomas.petazzoni@free-electrons.com,
jason@lakedaemon.net, gregory.clement@free-electrons.com,
sebastian.hesselbarth@gmail.com, andrew@lunn.ch,
tawfik@marvell.com, alior@marvell.com
Subject: Re: [PATCH 1/7] net: mv643xx_eth: Simplify mv643xx_eth_adjust_link()
Date: Tue, 6 May 2014 13:17:17 -0300 [thread overview]
Message-ID: <20140506161717.GA24264@arch.cereza> (raw)
In-Reply-To: <20140505.154004.1134814253503467382.davem@davemloft.net>
On 05 May 03:40 PM, David Miller wrote:
> From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> Date: Sat, 3 May 2014 15:26:56 -0300
>
> > Currently, mv643xx_eth_adjust_link() is only used to call mv643xx_adjust_pscr().
> > This commit renames the latter to the former, and therefore removes the extra
> > and useless function.
> >
> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > ---
> > drivers/net/ethernet/marvell/mv643xx_eth.c | 15 +++++----------
> > 1 file changed, 5 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
> > index b7b8d74..1e63c63 100644
> > --- a/drivers/net/ethernet/marvell/mv643xx_eth.c
> > +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
> > @@ -1010,8 +1010,10 @@ static void txq_set_fixed_prio_mode(struct tx_queue *txq)
> >
> >
> > /* mii management interface *************************************************/
> > -static void mv643xx_adjust_pscr(struct mv643xx_eth_private *mp)
> > +static void mv643xx_eth_adjust_link(struct net_device *dev)
> > {
> > + struct mv643xx_eth_private *mp = netdev_priv(dev);
> > +
> > u32 pscr = rdlp(mp, PORT_SERIAL_CONTROL);
> > u32 autoneg_disable = FORCE_LINK_PASS |
> > DISABLE_AUTO_NEG_SPEED_GMII |
>
> Please do not add empty lines in the middle of the function local variable declarations.
Argh, I missed this.
Thanks for the catch,
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-05-06 16:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 18:26 [PATCH 0/7] net: ethernet: marvell: Assorted fixes Ezequiel Garcia
2014-05-03 18:26 ` [PATCH 1/7] net: mv643xx_eth: Simplify mv643xx_eth_adjust_link() Ezequiel Garcia
2014-05-04 21:23 ` Sebastian Hesselbarth
2014-05-05 19:40 ` David Miller
2014-05-06 16:17 ` Ezequiel Garcia [this message]
2014-05-03 18:26 ` [PATCH 2/7] net: mvneta: Clean-up mvneta_tx_frag_process() Ezequiel Garcia
2014-05-03 18:26 ` [PATCH 3/7] net: mvneta: Check tx queue setup error in mvneta_change_mtu() Ezequiel Garcia
2014-05-03 18:26 ` [PATCH 4/7] net: mvneta: Clean-up mvneta_init() Ezequiel Garcia
2014-05-03 18:27 ` [PATCH 5/7] net: mvneta: Use prepare/commit API to simplify MAC address setting Ezequiel Garcia
2014-05-03 18:27 ` [PATCH 6/7] net: mvneta: Change the number of default rx queues to one Ezequiel Garcia
2014-05-03 18:27 ` [PATCH 7/7] net: mvmdio: Use devm_* API to simplify the code Ezequiel Garcia
2014-05-04 21:24 ` Sebastian Hesselbarth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140506161717.GA24264@arch.cereza \
--to=ezequiel.garcia@free-electrons.com \
--cc=alior@marvell.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=gregory.clement@free-electrons.com \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=netdev@vger.kernel.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=tawfik@marvell.com \
--cc=thomas.petazzoni@free-electrons.com \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).