| .. | .. |
|---|
| 815 | 815 | int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, |
|---|
| 816 | 816 | const struct mdio_ops *mdio_ops) |
|---|
| 817 | 817 | { |
|---|
| 818 | | - int err; |
|---|
| 819 | | - |
|---|
| 820 | 818 | cphy_init(phy, adapter, phy_addr, &ael2020_ops, mdio_ops, |
|---|
| 821 | 819 | SUPPORTED_10000baseT_Full | SUPPORTED_AUI | SUPPORTED_FIBRE | |
|---|
| 822 | 820 | SUPPORTED_IRQ, "10GBASE-R"); |
|---|
| 823 | 821 | msleep(125); |
|---|
| 824 | 822 | |
|---|
| 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); |
|---|
| 829 | 824 | } |
|---|
| 830 | 825 | |
|---|
| 831 | 826 | /* |
|---|