From 35c308a22ce8d63db6347f0f752584a70926dcfe Mon Sep 17 00:00:00 2001 From: Bitan Biswas Date: Thu, 16 Feb 2023 08:19:06 -0800 Subject: [PATCH] Revert "ASoC: tegra: Fix coverity issue" This reverts commit b284ab0c11569bbddd972abd051f43d8923ec05d. Reason for revert: Null pointer exception during boot l4t k515 concord bug 3990297 Change-Id: I8354b0dc28e88aa3c23adfdce84fa5cb96f88fdb Signed-off-by: Bitan Biswas Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859511 Reviewed-by: Akhil R Reviewed-by: Laxman Dewangan Reviewed-by: Mohan Kumar D GVS: Gerrit_Virtual_Submit --- sound/soc/tegra/tegra_asoc_machine.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sound/soc/tegra/tegra_asoc_machine.c b/sound/soc/tegra/tegra_asoc_machine.c index 4ba2a5ef..0976e539 100644 --- a/sound/soc/tegra/tegra_asoc_machine.c +++ b/sound/soc/tegra/tegra_asoc_machine.c @@ -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;