From 5b4daae8f861d892767679c357ac3bfbf43155fa Mon Sep 17 00:00:00 2001 From: Arun Khandavalli Date: Mon, 29 Aug 2016 14:36:11 +0530 Subject: [PATCH] qcacld-3.0: Remove hif_ctx check during the driver cleanup When inactivity timer on the interface's expires it closes all the cds modules, when rmmod is given after the modules are closed hif_ctx will be null. There is a invalid check during the driver remove for valid hif_ctx which is blocking from the proper cleanup of the driver. Since hif_ctx is not used any more during the driver remove function. Remove hif_ctx validation during the driver unload. Change-Id: I32dce7a0b503cc4fe028d4e5992402fe7b4886a7 CRs-Fixed: 1060810 --- core/hdd/src/wlan_hdd_driver_ops.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 2c58e8e2a533..e335d2b76ba2 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -414,9 +414,6 @@ static inline void hdd_pld_driver_unloading(struct device *dev) */ static void wlan_hdd_remove(struct device *dev) { - void *hif_ctx; - - pr_info("%s: Removing driver v%s\n", WLAN_MODULE_NAME, QWLAN_VERSIONSTR); @@ -434,11 +431,6 @@ static void wlan_hdd_remove(struct device *dev) hdd_pld_driver_unloading(dev); - hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); - - if (NULL == hif_ctx) - return; - if (QDF_IS_EPPING_ENABLED(cds_get_conparam())) { epping_disable(); epping_close();