diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-02-25 01:29:40 +0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-03-06 22:14:13 +0400 |
commit | bdca71ede7356e4a5838724a0a40be63ac549641 (patch) | |
tree | 12a98c870fae5f15cc233551c01db023edb46024 /drivers/net/ethernet/sfc/siena.c | |
parent | 2c61c8a787fc3382edefd8c7ad3e0f74c81e5302 (diff) | |
download | linux-bdca71ede7356e4a5838724a0a40be63ac549641.tar.xz |
sfc: Remove redundant function efx_nic_has_mc()
This function is now used in only one place, where it always returns
true.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/siena.c')
-rw-r--r-- | drivers/net/ethernet/sfc/siena.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/siena.c b/drivers/net/ethernet/sfc/siena.c index 7bea79017a05..9f8d7cea3967 100644 --- a/drivers/net/ethernet/sfc/siena.c +++ b/drivers/net/ethernet/sfc/siena.c @@ -409,8 +409,7 @@ static void siena_remove_nic(struct efx_nic *efx) siena_reset_hw(efx, RESET_TYPE_ALL); /* Relinquish the device back to the BMC */ - if (efx_nic_has_mc(efx)) - efx_mcdi_drv_attach(efx, false, NULL); + efx_mcdi_drv_attach(efx, false, NULL); /* Tear down the private nic state */ kfree(efx->nic_data); |