diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-09 14:54:16 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-26 19:10:57 -0500 |
commit | 6c8eef4ac8dfd888be5b46e363f8e42b9f0d5b6a (patch) | |
tree | 78346aef553237b29146c5d37a55c3efb0727f10 /drivers/net/ethernet/sfc | |
parent | 2aa9ef11e70c47ed26f831798f02ad3794e5ad41 (diff) |
sfc: Remove redundant 'rc' variable, always set to 0
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 8ecddd056679..fce42f428c6c 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c | |||
@@ -1793,7 +1793,6 @@ static void efx_watchdog(struct net_device *net_dev) | |||
1793 | static int efx_change_mtu(struct net_device *net_dev, int new_mtu) | 1793 | static int efx_change_mtu(struct net_device *net_dev, int new_mtu) |
1794 | { | 1794 | { |
1795 | struct efx_nic *efx = netdev_priv(net_dev); | 1795 | struct efx_nic *efx = netdev_priv(net_dev); |
1796 | int rc = 0; | ||
1797 | 1796 | ||
1798 | EFX_ASSERT_RESET_SERIALISED(efx); | 1797 | EFX_ASSERT_RESET_SERIALISED(efx); |
1799 | 1798 | ||
@@ -1816,7 +1815,7 @@ static int efx_change_mtu(struct net_device *net_dev, int new_mtu) | |||
1816 | efx_init_channels(efx); | 1815 | efx_init_channels(efx); |
1817 | 1816 | ||
1818 | efx_start_all(efx); | 1817 | efx_start_all(efx); |
1819 | return rc; | 1818 | return 0; |
1820 | } | 1819 | } |
1821 | 1820 | ||
1822 | static int efx_set_mac_address(struct net_device *net_dev, void *data) | 1821 | static int efx_set_mac_address(struct net_device *net_dev, void *data) |