Commit a76b6b1f authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller
Browse files

net: mediatek: simplify the return expression of mtk_gmac_sgmii_path_setup()



Simplify the return expression.

Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b18cac54
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -241,17 +241,13 @@ out:

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 :
				MTK_ETH_PATH_GMAC2_SGMII;

	/* Setup proper MUXes along the path */
	err = mtk_eth_mux_setup(eth, path);
	if (err)
		return err;

	return 0;
	return mtk_eth_mux_setup(eth, path);
}

int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id)