Merge "qcacmn: Initialize local variable before using it"

This commit is contained in:
Linux Build Service Account
2023-04-21 12:47:51 -07:00
committed by Gerrit - the friendly Code Review server
commit 09f783fa3f

Näytä tiedosto

@@ -802,8 +802,8 @@ static void ml_extract_link_state(struct wlan_objmgr_psoc *psoc,
struct ml_link_state_info_event *event)
{
QDF_STATUS status;
get_ml_link_state_cb resp_cb;
void *context;
get_ml_link_state_cb resp_cb = NULL;
void *context = NULL;
uint8_t vdev_id;
vdev_id = event->vdev_id;
@@ -811,6 +811,9 @@ static void ml_extract_link_state(struct wlan_objmgr_psoc *psoc,
status = mlo_get_link_state_context(psoc,
&resp_cb, &context, vdev_id);
if (QDF_IS_STATUS_ERROR(status))
return;
if (resp_cb)
resp_cb(event, context);
}