diff options
author | huangjunxian <huangjunxian6@hisilicon.com> | 2022-09-17 12:38:42 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-22 03:25:19 +0200 |
commit | a0a85097680101172928bef443aaf222e73017f8 (patch) | |
tree | b17a12f1219e1a8b1cd237e0c9ec74d05327bb05 /drivers/net/ethernet/xilinx | |
parent | net: ll_temac: fix the missing spaces around '=' (diff) | |
download | linux-a0a85097680101172928bef443aaf222e73017f8.tar.xz linux-a0a85097680101172928bef443aaf222e73017f8.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index bf806964c66d..baccc15d1ec6 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c @@ -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 */ |