lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ