Revert "ASoC: tegra: Fix coverity issue"

This reverts commit b284ab0c11.

Reason for revert: Null pointer exception during boot l4t k515 concord

bug 3990297

Change-Id: I8354b0dc28e88aa3c23adfdce84fa5cb96f88fdb
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859511
Reviewed-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Bitan Biswas
2023-02-16 08:19:06 -08:00
committed by mobile promotions
parent 8c3deebf44
commit 35c308a22c

View File

@@ -2,7 +2,7 @@
/*
* tegra_asoc_machine.c - Tegra DAI links parser
*
* Copyright (c) 2014-2023 NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2022 NVIDIA CORPORATION. All rights reserved.
*
*/
@@ -501,10 +501,8 @@ static int parse_dt_dai_links(struct snd_soc_card *card,
asoc_simple_canonicalize_platform(dai_link->platforms,
dai_link->cpus);
if (of_property_read_u32(link_node, "link-type",
&link_type) < 0)
goto cleanup;
of_property_read_u32(link_node, "link-type",
&link_type);
switch (link_type) {
case PCM_LINK:
dai_link->ops = pcm_ops;