]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sfc: Remove redundant 'rc' variable, always set to 0
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 9 Jan 2012 19:54:16 +0000 (19:54 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 27 Jan 2012 00:10:57 +0000 (00:10 +0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c

index 8ecddd056679ae8aebd769700bf76defadc07086..fce42f428c6cd7b8fabb240cd565b9c92ac45546 100644 (file)
@@ -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)