summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-11-25 11:11:15 +0900
committerJohn W. Linville <linville@tuxdriver.com>2013-12-05 14:56:37 -0500
commit85f66a0e9bddb37570788ae040a9755d64127a2e (patch)
tree33177da27a334bca30281ac26ee3d4ec05ebb5b4 /drivers/net/wireless/libertas
parent515adc14cb860f1fb83f48acc6558baec10386f4 (diff)
downloadtalos-obmc-linux-85f66a0e9bddb37570788ae040a9755d64127a2e.tar.gz
talos-obmc-linux-85f66a0e9bddb37570788ae040a9755d64127a2e.zip
wireless: libertas: remove unnecessary spi_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/if_spi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
index 83669151bb82..f11728a866ff 100644
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -93,7 +93,6 @@ static void free_if_spi_card(struct if_spi_card *card)
list_del(&packet->list);
kfree(packet);
}
- spi_set_drvdata(card->spi, NULL);
kfree(card);
}
OpenPOWER on IntegriCloud