[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <C246CAC1457055469EF09E3A7AC4E11A4A5E4A7C@XAP-PVEXMBX01.xlnx.xilinx.com>
Date: Fri, 19 Aug 2016 13:18:12 +0000
From: Appana Durga Kedareswara Rao <appana.durga.rao@...inx.com>
To: Andrew Lunn <andrew@...n.ch>
CC: Michal Simek <michals@...inx.com>,
Soren Brinkmann <sorenb@...inx.com>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH 1/2] net: phy: Add error checks in the driver
Hi Andrew,
Thanks for the review...
> > - mdiobus_write(phydev->mdio.bus, priv->addr,
> XILINX_GMII2RGMII_REG, val);
> > + err = mdiobus_write(phydev->mdio.bus, priv->addr,
> XILINX_GMII2RGMII_REG,
> > + val);
> > + if (err < 0)
> > + return err;
> >
> > return 0;
>
> Do you need to assign err? Why not just
Ok will fix in the next version....
Regards,
Kedar.
>
> return mdiobus_write(phydev->mdio.bus, priv->addr,
> XILINX_GMII2RGMII_REG,
> val);
Powered by blists - more mailing lists