From: Ben Hutchings Date: Mon, 9 Jan 2012 19:54:16 +0000 (+0000) Subject: sfc: Remove redundant 'rc' variable, always set to 0 X-Git-Tag: v3.12-rc1~3664^2~452^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c8eef4ac8dfd888be5b46e363f8e42b9f0d5b6a;p=kernel%2Fkernel-generic.git sfc: Remove redundant 'rc' variable, always set to 0 Signed-off-by: Ben Hutchings --- diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 8ecddd0..fce42f4 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) 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)