+ ret = clk_prepare_enable(priv->mdio_clk); + if (ret) + return ret; + + return 0; This can be simplified to just: return clk_prepare_enable(priv->mdio_clk); Andrew
+ ret = clk_prepare_enable(priv->mdio_clk); + if (ret) + return ret; + + return 0;