[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <VI1PR04MB5567583F09439DC9545D0AB1EC630@VI1PR04MB5567.eurprd04.prod.outlook.com>
Date: Thu, 31 Oct 2019 13:58:18 +0000
From: Madalin Bucur <madalin.bucur@....com>
To: Joe Perches <joe@...ches.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: Roy Pledge <roy.pledge@....com>,
"jakub.kicinski@...ronome.com" <jakub.kicinski@...ronome.com>
Subject: RE: [net-next 10/13] dpaa_eth: remove netdev_err() for user errors
> -----Original Message-----
> From: Joe Perches <joe@...ches.com>
> Sent: Thursday, October 31, 2019 1:48 PM
> To: Madalin Bucur <madalin.bucur@....com>; davem@...emloft.net;
> netdev@...r.kernel.org
> Cc: Roy Pledge <roy.pledge@....com>; jakub.kicinski@...ronome.com
> Subject: Re: [net-next 10/13] dpaa_eth: remove netdev_err() for user
> errors
>
> On Thu, 2019-10-31 at 13:36 +0200, Madalin Bucur wrote:
> > User reports that an application making an (incorrect) call to
> > restart AN on a fixed link DPAA interface triggers an error in
> > the kernel log while the returned EINVAL should be enough.
> []
> > diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
> b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
> []
> > @@ -81,7 +81,6 @@ static int dpaa_get_link_ksettings(struct net_device
> *net_dev,
> > struct ethtool_link_ksettings *cmd)
> > {
> > if (!net_dev->phydev) {
> > - netdev_dbg(net_dev, "phy device not initialized\n");
> > return 0;
> > }
>
> ideally the now excess braces would be removed too.
You're right, I'll send a v2
> > @@ -96,7 +95,6 @@ static int dpaa_set_link_ksettings(struct net_device
> *net_dev,
> > int err;
> >
> > if (!net_dev->phydev) {
> > - netdev_err(net_dev, "phy device not initialized\n");
> > return -ENODEV;
> > }
>
> etc...
>
Powered by blists - more mailing lists