diff options
| author | Arun Khandavalli <akhandav@codeaurora.org> | 2016-08-29 14:36:11 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-02 17:24:57 -0700 |
| commit | 5b4daae8f861d892767679c357ac3bfbf43155fa (patch) | |
| tree | 51d12dfda7f5e4f2ec2878d6c9845b8d51fc8283 | |
| parent | 3003e3efd208279a847d4204962cc86dc6af228b (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_driver_ops.c | 8 |
1 files changed, 0 insertions, 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(); |
