qcacld-3.0: Remove unnecessary wma_handle checks
Remove unnecessary wma_handle checks and cleanup the code. Change-Id: Ia8daf24037d94996f35b9eefc661713664c0fce9 CRs-Fixed: 2823125
This commit is contained in:

committed by
snandini

parent
94f2a06fdd
commit
6659ed5e49
@@ -154,18 +154,8 @@ void wma_set_fw_wlan_feat_caps(enum cap_bitmap feature)
|
|||||||
*/
|
*/
|
||||||
static void wma_service_ready_ext_evt_timeout(void *data)
|
static void wma_service_ready_ext_evt_timeout(void *data)
|
||||||
{
|
{
|
||||||
tp_wma_handle wma_handle;
|
|
||||||
|
|
||||||
wma_alert("Timeout waiting for WMI_SERVICE_READY_EXT_EVENT");
|
wma_alert("Timeout waiting for WMI_SERVICE_READY_EXT_EVENT");
|
||||||
|
|
||||||
wma_handle = (tp_wma_handle) data;
|
|
||||||
|
|
||||||
if (!wma_handle) {
|
|
||||||
wma_err("Invalid WMA handle");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
end:
|
|
||||||
/* Assert here. Panic is being called in insmod thread */
|
/* Assert here. Panic is being called in insmod thread */
|
||||||
QDF_ASSERT(0);
|
QDF_ASSERT(0);
|
||||||
}
|
}
|
||||||
@@ -9077,14 +9067,8 @@ QDF_STATUS wma_mc_process_handler(struct scheduler_msg *msg)
|
|||||||
*/
|
*/
|
||||||
void wma_log_completion_timeout(void *data)
|
void wma_log_completion_timeout(void *data)
|
||||||
{
|
{
|
||||||
tp_wma_handle wma_handle;
|
|
||||||
|
|
||||||
wma_debug("Timeout occurred for log completion command");
|
wma_debug("Timeout occurred for log completion command");
|
||||||
|
|
||||||
wma_handle = (tp_wma_handle) data;
|
|
||||||
if (!wma_handle)
|
|
||||||
wma_err("Invalid WMA handle");
|
|
||||||
|
|
||||||
/* Though we did not receive any event from FW,
|
/* Though we did not receive any event from FW,
|
||||||
* we can flush whatever logs we have with us
|
* we can flush whatever logs we have with us
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user