qcacmn: Remove redundant null check for wmi_handle
In WMI detach caller routine already has null check for wmi_handle so remove redundant null check. Change-Id: I764a91a6050ffc93613b82008f5df2529a056e70 CRs-Fixed: 1027177
This commit is contained in:

committed by
Akash Patel

parent
20e7a06bfa
commit
fec0401efd
@@ -2203,11 +2203,9 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle)
|
|||||||
qdf_spin_unlock_bh(&wmi_handle->eventq_lock);
|
qdf_spin_unlock_bh(&wmi_handle->eventq_lock);
|
||||||
qdf_spinlock_destroy(&wmi_handle->eventq_lock);
|
qdf_spinlock_destroy(&wmi_handle->eventq_lock);
|
||||||
qdf_spinlock_destroy(&wmi_handle->ctx_lock);
|
qdf_spinlock_destroy(&wmi_handle->ctx_lock);
|
||||||
if (wmi_handle != NULL) {
|
|
||||||
OS_FREE(wmi_handle);
|
OS_FREE(wmi_handle);
|
||||||
wmi_handle = NULL;
|
wmi_handle = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wmi_unified_remove_work() - detach for WMI work
|
* wmi_unified_remove_work() - detach for WMI work
|
||||||
|
Reference in New Issue
Block a user