mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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
This commit is contained in:
parent
3003e3efd2
commit
5b4daae8f8
1 changed files with 0 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue