Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp6320pxb; Wed, 30 Mar 2022 21:06:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK8452turD+mq6FdVwHa8lUqjLGGfmw6e9zxkB1W7LHgvWw/P+y5bgJ+9Q/23UTjzLJKpG X-Received: by 2002:a17:903:2306:b0:154:92f:67c3 with SMTP id d6-20020a170903230600b00154092f67c3mr39855085plh.157.1648699457758; Wed, 30 Mar 2022 21:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648699457; cv=none; d=google.com; s=arc-20160816; b=0n9JU1/GRMGICsh5YmzUPT3T27lKItDULpOVp1QbD6ALGFb/Icka+bo+XhsPWu5bIH OT7DdneXkxCESCPGSDP54txPHMbWeuAiaSUz2DGsqkI+LKg2xmXWuHgiOX5mWi+Tb63r LjTr+zp8xG2tDt5PK8sXQX8S12oUZE4OLaMHlWwvAZu5FWpd4cZioKwxDDlzOKumL2U1 E3BuHpaPEtPrZDMEmWM0nCre8hAOF+aFkJEYY/Eai5h8UrmGeIdcOAZbstvR/56Kblce ZRnWPGO0HFM3f6eGIhx1lZTlBrMGYrIWHH3D4iKRYOa50eMg/PxSR96HlVHSjdvmqE/D KCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wSdKacSkfnUr94ecMFlq0poave2rXHnkfm/RQKJ+3y0=; b=oJAkr/oqYDxzKQfD8Z3GPEUgzohjw65dT3i3r82BWKCdcveNBaZymRlw/+8iRT4XhJ 0RFt7LLq2+x3D9c2ELNQ75HKL/GkcrMXzE3fGhe1xGcksn1//pwQAXLSItJnANci4wNq Kl1aFUPnvAe7eBgNKxz+VruQk1aZlI2hwjb/7GRAUNnhSCbTvEg20uapmSNljOf7vQI4 KDNlw6POsVKntyYatAjKeGxFEnWd/TDRHFfy9L/QHRXUfh118LoNrO43rXZJZM5mJSas 14ueoqNVho9dzlUWznMH8hs8+8Ok5GIMNZ16bwFAWSmCq8ekMmw3pSBAWQssz3Ikl9Tr 7WIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZWHiwuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ng18-20020a17090b1a9200b001c6a671b0adsi2218589pjb.113.2022.03.30.21.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZWHiwuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 354D8F61E8; Wed, 30 Mar 2022 20:11:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344594AbiC3MCD (ORCPT + 99 others); Wed, 30 Mar 2022 08:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344886AbiC3Lxo (ORCPT ); Wed, 30 Mar 2022 07:53:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 282AC26F920; Wed, 30 Mar 2022 04:49:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 02DF3B81C24; Wed, 30 Mar 2022 11:49:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0FD4C340EE; Wed, 30 Mar 2022 11:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648640982; bh=v1luuvpj5UTKQupxrRu/rhsBPsNSE/Jx1YwX0tOiZ3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sZWHiwuGqlLW1c8voCZk4tS8lex4t0Sis/xZwkStFSgr/qRB9m9L7hBkrXFOmqsgi eA5lE4Qoy6XhBk7bCiezc1C4jenaLPKKG9YKMlVgbO+IYmuU5U30PENpxF7nfs213j Agp4ClVd8E8zzqxkaovzZUV76sn33HfZm7b/9P7/Gd4UMZLMYafgg1WSv9sbNYqGXB yEbX/oCWIhQghK84+tEh2IVVx5Lm/IcayYd2/lOFIy+/oFtiVEpV3Xb79mn7Q7dSHD 850msC16xvlCd1SiXiyheWL5IMZEIQhCixMhTCwXyMM9OmUqYO0H8XJWGea4YotW3U w+txDPgdGPc2w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vijendar Mukunda , Dan Carpenter , Mark Brown , Sasha Levin , lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.16 45/59] ASoC: amd: vangogh: fix uninitialized symbol warning in machine driver Date: Wed, 30 Mar 2022 07:48:17 -0400 Message-Id: <20220330114831.1670235-45-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220330114831.1670235-1-sashal@kernel.org> References: <20220330114831.1670235-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vijendar Mukunda [ Upstream commit 6f989800639a7a29ab9a02e165b04dc144dd4f2b ] Fixed below smatch static checker warning. sound/soc/amd/vangogh/acp5x-mach.c:190 acp5x_cs35l41_hw_params() error: uninitialized symbol 'ret'. Reported-by: Dan Carpenter Signed-off-by: Vijendar Mukunda Link: https://lore.kernel.org/r/20220225193054.24916-4-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/amd/vangogh/acp5x-mach.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/amd/vangogh/acp5x-mach.c b/sound/soc/amd/vangogh/acp5x-mach.c index 14cf325e4b23..5d7a17755fa7 100644 --- a/sound/soc/amd/vangogh/acp5x-mach.c +++ b/sound/soc/amd/vangogh/acp5x-mach.c @@ -165,6 +165,7 @@ static int acp5x_cs35l41_hw_params(struct snd_pcm_substream *substream, unsigned int num_codecs = rtd->num_codecs; unsigned int bclk_val; + ret = 0; for (i = 0; i < num_codecs; i++) { codec_dai = asoc_rtd_to_codec(rtd, i); if ((strcmp(codec_dai->name, "spi-VLV1776:00") == 0) || -- 2.34.1