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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user