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:
Arun Khandavalli 2016-08-29 14:36:11 +05:30 • committed by qcabuildsw
commit 5b4daae8f8

View file

@ -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();