From: Jingoo Han Date: Mon, 25 Nov 2013 02:11:15 +0000 (+0900) Subject: wireless: libertas: remove unnecessary spi_set_drvdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85f66a0e9bddb37570788ae040a9755d64127a2e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: John W. Linville --- 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); }