qcacmn: Fix uninitialized variable used issue
Fix uninitialized variable used issue, to avoid compiler complain. Change-Id: I21729bf98aa6561d6282bb456451e1e1a0748609 CRs-Fixed: 3674783
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2014-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
|
||||
@@ -8231,7 +8231,7 @@ QDF_STATUS reg_get_client_power_for_connecting_ap(struct wlan_objmgr_pdev *pdev,
|
||||
uint16_t *eirp_psd_power)
|
||||
{
|
||||
struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj;
|
||||
enum reg_6g_client_type client_type;
|
||||
enum reg_6g_client_type client_type = REG_DEFAULT_CLIENT;
|
||||
struct regulatory_channel *master_chan_list;
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2015-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
|
||||
@@ -1182,7 +1182,7 @@ static int debug_wmi_log_size_show(struct seq_file *m, void *v)
|
||||
((struct seq_file *)file->private_data)->private;\
|
||||
struct wmi_log_buf_t *wmi_log = &wmi_handle->log_info. \
|
||||
wmi_##func_base##_buf_info; \
|
||||
char locbuf[50]; \
|
||||
char locbuf[50] = {0x00}; \
|
||||
\
|
||||
if ((!buf) || (count > 50)) \
|
||||
return -EFAULT; \
|
||||
@@ -1238,7 +1238,7 @@ static ssize_t debug_wmi_enable_write(struct file *file, const char __user *buf,
|
||||
wmi_unified_t wmi_handle =
|
||||
((struct seq_file *)file->private_data)->private;
|
||||
int k, ret;
|
||||
char locbuf[50];
|
||||
char locbuf[50] = {0x00};
|
||||
|
||||
if ((!buf) || (count > 50))
|
||||
return -EFAULT;
|
||||
|
Reference in New Issue
Block a user