ASoC: tegra-virt-alt: Fix coverity issue

Fix uninitialized scalar variable in adsp_admaif_dt_params structure

CID 10166577

Bug 3952896

Change-Id: Ief007160f049ab34d2d3a50e20895dbd3c73efe7
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2868887
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Mohan Kumar
2023-03-10 10:42:13 +05:30
committed by mobile promotions
parent f0b50808e6
commit dab2a32da0

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/ */
#include <linux/module.h> #include <linux/module.h>
@@ -63,7 +63,7 @@ static int tegra_virt_machine_driver_probe(struct platform_device *pdev)
char buffer[30]; char buffer[30];
int32_t adsp_admaif_bits, adsp_admaif_format; int32_t adsp_admaif_bits, adsp_admaif_format;
int32_t adsp_admaif_channels; int32_t adsp_admaif_channels;
struct snd_soc_pcm_stream adsp_admaif_dt_params; struct snd_soc_pcm_stream adsp_admaif_dt_params = { };
struct snd_soc_pcm_runtime *rtd; struct snd_soc_pcm_runtime *rtd;
match = tegra_virt_machine_of_match; match = tegra_virt_machine_of_match;