diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 43d0a0db6e0d..fe2c8bb4d2f1 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -309,12 +309,9 @@ static const u16 sh_eth_offset_fast_sh3_sh2[SH_ETH_MAX_REGISTER_OFFSET] = { | |||
309 | [TSU_ADRL31] = 0x01fc, | 309 | [TSU_ADRL31] = 0x01fc, |
310 | }; | 310 | }; |
311 | 311 | ||
312 | static int sh_eth_is_gether(struct sh_eth_private *mdp) | 312 | static bool sh_eth_is_gether(struct sh_eth_private *mdp) |
313 | { | 313 | { |
314 | if (mdp->reg_offset == sh_eth_offset_gigabit) | 314 | return mdp->reg_offset == sh_eth_offset_gigabit; |
315 | return 1; | ||
316 | else | ||
317 | return 0; | ||
318 | } | 315 | } |
319 | 316 | ||
320 | static void sh_eth_select_mii(struct net_device *ndev) | 317 | static void sh_eth_select_mii(struct net_device *ndev) |