Skip to content

Commit

Permalink
sfc: Remove redundant 'rc' variable, always set to 0
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Ben Hutchings committed Jan 27, 2012
1 parent 2aa9ef1 commit 6c8eef4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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)
Expand Down

0 comments on commit 6c8eef4

Please sign in to comment.