From: Qinglang Miao Date: Mon, 21 Sep 2020 13:10:05 +0000 (+0800) Subject: chelsio: simplify the return expression of t3_ael2020_phy_prep() X-Git-Tag: v5.10.7~1401^2~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b696db590f5d57902a074a676eecd3b8cbbad271;p=platform%2Fkernel%2Flinux-rpi.git chelsio: simplify the return expression of t3_ael2020_phy_prep() Simplify the return expression. Signed-off-by: Qinglang Miao Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/chelsio/cxgb3/ael1002.c b/drivers/net/ethernet/chelsio/cxgb3/ael1002.c index dadf11e..9d591f0 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/ael1002.c +++ b/drivers/net/ethernet/chelsio/cxgb3/ael1002.c @@ -815,17 +815,12 @@ static const struct cphy_ops ael2020_ops = { int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) { - int err; - cphy_init(phy, adapter, phy_addr, &ael2020_ops, mdio_ops, SUPPORTED_10000baseT_Full | SUPPORTED_AUI | SUPPORTED_FIBRE | SUPPORTED_IRQ, "10GBASE-R"); msleep(125); - err = set_phy_regs(phy, ael2020_reset_regs); - if (err) - return err; - return 0; + return set_phy_regs(phy, ael2020_reset_regs); } /*