mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 11:21:51 +00:00
net: mediatek: simplify the return expression of mtk_gmac_sgmii_path_setup()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b18cac546b
commit
a76b6b1fe8
1 changed files with 2 additions and 6 deletions
|
@ -241,17 +241,13 @@ out:
|
||||||
|
|
||||||
int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id)
|
int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id)
|
||||||
{
|
{
|
||||||
int err, path;
|
int path;
|
||||||
|
|
||||||
path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_SGMII :
|
path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_SGMII :
|
||||||
MTK_ETH_PATH_GMAC2_SGMII;
|
MTK_ETH_PATH_GMAC2_SGMII;
|
||||||
|
|
||||||
/* Setup proper MUXes along the path */
|
/* Setup proper MUXes along the path */
|
||||||
err = mtk_eth_mux_setup(eth, path);
|
return mtk_eth_mux_setup(eth, path);
|
||||||
if (err)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id)
|
int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue