Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp932791pxb; Wed, 6 Apr 2022 04:41:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjDorSSTvdy8SPfrYVMvHGxSISLlnjoQXsh8hRMBbVyLB/uk25qv9hCFMxzu5Mj40P89o9 X-Received: by 2002:a17:90b:2242:b0:1c6:80e3:71b6 with SMTP id hk2-20020a17090b224200b001c680e371b6mr9434820pjb.152.1649245287887; Wed, 06 Apr 2022 04:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245287; cv=none; d=google.com; s=arc-20160816; b=TjB3XSlORl/zi5kd1CshtZHlcaJ32ltF60mrYSjbsdBiH9HjTrWGYkUPBody0eDFV0 L7YFbMnei4sruUFKr1FibMWFuqMWdHw9XuGH03NYgi8oEVVLYoKACEGPKQ3eQ3BBbXT7 oHvOev5o7q43dH4hKjb5/pCudGY+2IdVB/2MSLOfIJD90pMwW8iYUGpgC6SA/c97XjkY TN/p5UUm77+HvHM+na4+unxN4PSo3CtupuMa+VXCpPtIWmCJUdSJp0AYi4Ea8OKAkpIw 20hWKjo4a6jFdaHryXeWviVBVfueQVqdbWUkMiSpbDB3YYoQBxxUDhwo94AV4ePj2mMw CtmA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wSdKacSkfnUr94ecMFlq0poave2rXHnkfm/RQKJ+3y0=; b=i1cvGEdMHy6LtuVwRKZarhu+qhgzgJSr5T6PydVBIwasKL0QdPBb78BJCIJNDcBiso OfhQkclG8WN73yzEKdgh7zO8CMoa6yqmyfBdPdbo31cC3gOFP7MsaTPsl4K+78o3MTKb 1vJGZ49/wA1H3pbTZOl3PotgTkzQ70psERUHkHVTfEktJLERAPNzSE5ST7A+WCG7w7HI uyCytR0oDkiYvJXt5uwvc8JfZKiMCB4QP/9r4zvH8lVwGx+AZZdxhZBpcYuK1ELJaNKJ KWa5GGlQlgPY0ZnlbofMl8wuYj79AvbejvBp8Km/bHSFWVqEOi8YNRkp04Lkc1rv1Hoz h4Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="eN5/483s"; 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=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x23-20020a63f717000000b0038201af9a5fsi16312289pgh.53.2022.04.06.04.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:41:27 -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=@linuxfoundation.org header.s=korg header.b="eN5/483s"; 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=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 004831E8151; Wed, 6 Apr 2022 02:58:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383839AbiDENb3 (ORCPT + 99 others); Tue, 5 Apr 2022 09:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345672AbiDEJWz (ORCPT ); Tue, 5 Apr 2022 05:22:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65DE50E3B; Tue, 5 Apr 2022 02:11:39 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 730F261564; Tue, 5 Apr 2022 09:11:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 810AFC385A0; Tue, 5 Apr 2022 09:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149898; bh=v1luuvpj5UTKQupxrRu/rhsBPsNSE/Jx1YwX0tOiZ3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eN5/483ss73iMulDZANbPC39S4pTINezxuiXmTcOMYoVmeii4aCPkUBuaAFOFS/b3 Nt5T4wya2ACv1RRNz7HX1KSp+E1B2mUepQei8x9769/WwYLPW8PBjqARCbuUk/o2zK Dhhf8GXPiV24csOgbp0y2Fx0+ytUTksTg/RSMN08= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Vijendar Mukunda , Mark Brown , Sasha Levin Subject: [PATCH 5.16 0843/1017] ASoC: amd: vangogh: fix uninitialized symbol warning in machine driver Date: Tue, 5 Apr 2022 09:29:16 +0200 Message-Id: <20220405070419.264098432@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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