qcacld-3.0: Fix uninitialized variable used issue

Fix uninitialized variable used issue,
to avoid compiler complain.

Change-Id: I21729bf97aa6561d6282bb456451e1e1a0748609
CRs-Fixed: 3674787
This commit is contained in:
Lin Bai
2023-11-28 21:35:04 -08:00
committed by Ravindra Konda
parent f2f36e7a09
commit ccd5e8d216

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -862,7 +862,7 @@ static void tgt_mc_cp_stats_extract_vdev_summary_stats(
struct wlan_objmgr_psoc *psoc,
struct stats_event *ev)
{
uint8_t i, vdev_id;
uint8_t i, vdev_id = WLAN_INVALID_VDEV_ID;
QDF_STATUS status;
struct wlan_objmgr_peer *peer = NULL;
struct request_info last_req = {0};
@@ -895,6 +895,9 @@ static void tgt_mc_cp_stats_extract_vdev_summary_stats(
return;
}
if (vdev_id == WLAN_INVALID_VDEV_ID)
return;
vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, vdev_id,
WLAN_CP_STATS_ID);
if (!vdev) {