net: ll_temac: move trailing statements to next line
Cleaning some static warnings of trailing statements. Signed-off-by: huangjunxian <huangjunxian6@hisilicon.com> Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com> Reviewed-by: Harini Katakam <harini.katakam@amd.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a9f1ef7034
commit
a0a8509768
@ -723,9 +723,15 @@ static void temac_adjust_link(struct net_device *ndev)
|
||||
mii_speed &= ~XTE_EMCFG_LINKSPD_MASK;
|
||||
|
||||
switch (phy->speed) {
|
||||
case SPEED_1000: mii_speed |= XTE_EMCFG_LINKSPD_1000; break;
|
||||
case SPEED_100: mii_speed |= XTE_EMCFG_LINKSPD_100; break;
|
||||
case SPEED_10: mii_speed |= XTE_EMCFG_LINKSPD_10; break;
|
||||
case SPEED_1000:
|
||||
mii_speed |= XTE_EMCFG_LINKSPD_1000;
|
||||
break;
|
||||
case SPEED_100:
|
||||
mii_speed |= XTE_EMCFG_LINKSPD_100;
|
||||
break;
|
||||
case SPEED_10:
|
||||
mii_speed |= XTE_EMCFG_LINKSPD_10;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Write new speed setting out to TEMAC */
|
||||
|
Loading…
Reference in New Issue
Block a user