Commit d7bc7e60310a49a680bd4a79ba525e74f82aa2ea
Committed by
Stefano Babic
1 parent
da5019e2b3
Exists in
v2017.01-smarct4x
and in
37 other branches
mx6sxsabresd: Simplify the return value of setup_fec()
We can simply the return the value from enable_fec_anatop_clock() to make the code smaller and simpler. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Showing 1 changed file with 1 additions and 6 deletions Side-by-side Diff
board/freescale/mx6sxsabresd/mx6sxsabresd.c
... | ... | @@ -119,7 +119,6 @@ |
119 | 119 | { |
120 | 120 | struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR; |
121 | 121 | struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; |
122 | - int ret; | |
123 | 122 | int reg; |
124 | 123 | |
125 | 124 | /* Use 125MHz anatop loopback REF_CLK1 for ENET1 */ |
... | ... | @@ -140,11 +139,7 @@ |
140 | 139 | reg |= BM_ANADIG_PLL_ENET_REF_25M_ENABLE; |
141 | 140 | writel(reg, &anatop->pll_enet); |
142 | 141 | |
143 | - ret = enable_fec_anatop_clock(ENET_125MHz); | |
144 | - if (ret) | |
145 | - return ret; | |
146 | - | |
147 | - return 0; | |
142 | + return enable_fec_anatop_clock(ENET_125MHz); | |
148 | 143 | } |
149 | 144 | |
150 | 145 | int board_eth_init(bd_t *bis) |