Hello, On Tue, 5 Dec 2017 22:02:20 +0300, Sergei Shtylyov wrote: > > + /* mask with MAC supported features */ > > + if (mdp->cd->register_type != SH_ETH_REG_GIGABIT) { > > + err = phy_set_max_speed(phydev, SPEED_100); > > + if (err) { > > + netdev_err(ndev, "failed to limit PHY to 100 Mbit/s\n"); > > + goto err_phy_disconnect; > > Er, why do we need a *goto* here at all? Just call phy_disconnect() here > and be done with that... Thanks for the feedback, I've sent a v3 that takes into account this comment. Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com