qcacld-3.0: Add check to avoid warning

Add pointer check to avoid warning

Change-Id: I924a0bdd11daaaa8b21378aab0566b5dba73ca41
CRs-Fixed: 3719443
Cette révision appartient à :
Jianmin Zhu
2024-01-30 18:26:35 +08:00
révisé par Ravindra Konda
Parent 0777cabe6e
révision 46fb673424

Voir le fichier

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2013-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
@@ -1691,6 +1691,11 @@ target_if_set_pdev_stats_update_period(struct wlan_objmgr_psoc *psoc,
wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
if (!wmi_handle) {
cp_stats_err("wmi_handle is null");
return QDF_STATUS_E_INVAL;
}
pdev_param.param_id = wmi_pdev_param_pdev_stats_update_period;
pdev_param.param_value = val;
return wmi_unified_pdev_param_send(wmi_handle,