[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5CG3L3Jhjki-V7-jc+jBqRca_TTz_3e7=DP_1Zn8apZXQ@mail.gmail.com>
Date: Fri, 9 Aug 2013 14:36:59 -0300
From: Fabio Estevam <festevam@...il.com>
To: Claudiu Manoil <claudiu.manoil@...escale.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Ben Hutchings <bhutchings@...arflare.com>,
Lutz Jaenicke <ljaenicke@...ominate.com>
Subject: Re: [PATCH][net-next v1] gianfar: Add flow control support
On Fri, Aug 9, 2013 at 2:19 PM, Claudiu Manoil
<claudiu.manoil@...escale.com> wrote:
> +static int gfar_spauseparam(struct net_device *dev,
> + struct ethtool_pauseparam *epause)
> +{
> + struct gfar_private *priv = netdev_priv(dev);
> + struct phy_device *phydev = priv->phydev;
> + struct gfar __iomem *regs = priv->gfargrp[0].regs;
> + u32 oldadv, newadv;
> + int err = 0;
You could drop this 'err' variable, no?
...
> +
> + return err;
Then just 'return 0' here.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists