forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/chelsio/cxgb3/ael1002.c
....@@ -815,17 +815,12 @@
815815 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
816816 const struct mdio_ops *mdio_ops)
817817 {
818
- int err;
819
-
820818 cphy_init(phy, adapter, phy_addr, &ael2020_ops, mdio_ops,
821819 SUPPORTED_10000baseT_Full | SUPPORTED_AUI | SUPPORTED_FIBRE |
822820 SUPPORTED_IRQ, "10GBASE-R");
823821 msleep(125);
824822
825
- err = set_phy_regs(phy, ael2020_reset_regs);
826
- if (err)
827
- return err;
828
- return 0;
823
+ return set_phy_regs(phy, ael2020_reset_regs);
829824 }
830825
831826 /*