mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
sfc: Remove redundant 'rc' variable, always set to 0
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
2aa9ef11e7
commit
6c8eef4ac8
@ -1793,7 +1793,6 @@ static void efx_watchdog(struct net_device *net_dev)
|
||||
static int efx_change_mtu(struct net_device *net_dev, int new_mtu)
|
||||
{
|
||||
struct efx_nic *efx = netdev_priv(net_dev);
|
||||
int rc = 0;
|
||||
|
||||
EFX_ASSERT_RESET_SERIALISED(efx);
|
||||
|
||||
@ -1816,7 +1815,7 @@ static int efx_change_mtu(struct net_device *net_dev, int new_mtu)
|
||||
efx_init_channels(efx);
|
||||
|
||||
efx_start_all(efx);
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int efx_set_mac_address(struct net_device *net_dev, void *data)
|
||||
|
Loading…
Reference in New Issue
Block a user