qcacmn: Correct the error handling in event registration

wmi_oem_response_event_id is only defined for TLV based
architectures. Current code returns an error if registration to a
particular event fails. But registration failure is not wrong
for legacy architectures, as event is not defined.
So do not check return value for error

Change-Id: Ia54431cee2958b59166394360a3fc961abad85ce
CRs-Fixed: 2492494
This commit is contained in:
Abhiram Jogadenu 2019-07-19 22:55:28 +05:30 • committed by nshrivas
commit cede8ed032

View file

@ -336,15 +336,14 @@ QDF_STATUS target_if_wifi_pos_register_events(struct wlan_objmgr_psoc *psoc)
return QDF_STATUS_E_INVAL;
}
ret = wmi_unified_register_event_handler(
/* wmi_oem_response_event_id is not defined for legacy targets.
* So do not check for error for this event.
*/
wmi_unified_register_event_handler(
get_wmi_unified_hdl_from_psoc(psoc),
wmi_oem_response_event_id,
target_if_wifi_pos_oem_rsp_ev_handler,
WMI_RX_WORK_CTX);
if (ret) {
target_if_err("register_event_handler failed: err %d", ret);
return QDF_STATUS_E_INVAL;
}
ret = wmi_unified_register_event_handler(
get_wmi_unified_hdl_from_psoc(psoc),