Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2654415rdb; Wed, 4 Oct 2023 07:42:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGu5hoYit00LnXFCRCEji9/hQId73lpGUYc7FM7zYekASpyRJGQr8r4/Rzu66FyFLQJ0Dfd X-Received: by 2002:a05:6a21:185:b0:14d:7130:7bb3 with SMTP id le5-20020a056a21018500b0014d71307bb3mr3390919pzb.13.1696430550414; Wed, 04 Oct 2023 07:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696430550; cv=none; d=google.com; s=arc-20160816; b=gFiwlUJRpGuVeB9js6piiMRs4nVU85xUS40xttK/SJFNqAkLhqc4e9uMzIdLMQUXR2 4KLQFoD4950xmcyWh3oM9KUIbJye5eVY6d8CgQDRXMpMy9cUcxG0LdY91k9L1yWvwiI7 n4+JgJe/N4Xmoh81Tn1z9ETL0RRmFA6Z4EQGomclAO24GyQViybc84kJ/tYXMCewRnhf kaxAfoAALgTEPaLS7qWZpfF7InRvowNNz+E6VaRykJjPrsEi5hH27Iz8gLFUlLz8tOEW hGXW5lYGvkm1exV0l5NRhBS/uz7d80rEWXeplhPOU7Lv2mfkx8EOhhK0FXQxkiRrIMxn zPDg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Sxz1387w7IYaa7wmEtu62QpVmMzjRznmYrElSjKXwTs=; fh=WWvOcm04GqBffvyIjAezM5LcJV6H+7mXpCfKs4gNxsY=; b=hx4lmxQXP9C7qLpLav4RZmxIhk3Ij4PWxhf3o/2CdQCOpi2XjYZ2GnJgrRENf+MyVe KxG1jIBtDS6Y/UjHBm9BeZwJF0vqOakY228F0E8geOaTIgyek1DLfht8eyNF3Om+wzrQ KhaqbYgqwHN8N3Jqcy9GDoNLZkfdmNH/RDK6BuFtZUAK0njPvh3ColiWQLAhepsRgIOJ 3UHW18txZ5fZ3adBnI5pzBCC4JgpVdvzZOKFTJXeItrmXkEFokSm/woOBbdrofCpocXy AN838+NI2tnjWhdozz5DVru0qURdo780DgKWcx8zE4J4kurl73AhW8m+xw9ORPqRj2R+ PXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LUUI1unL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a15-20020a170902710f00b001bbd0450af8si3528300pll.187.2023.10.04.07.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LUUI1unL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E611B82D1AA2; Wed, 4 Oct 2023 07:42:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242943AbjJDOmX (ORCPT + 99 others); Wed, 4 Oct 2023 10:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242936AbjJDOmR (ORCPT ); Wed, 4 Oct 2023 10:42:17 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC60BC1 for ; Wed, 4 Oct 2023 07:42:13 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 394Eg5cL001398; Wed, 4 Oct 2023 09:42:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=S xz1387w7IYaa7wmEtu62QpVmMzjRznmYrElSjKXwTs=; b=LUUI1unLS7Q8eVAZc N8JgCk0dkAFpbwwYPJ2Fvh5O4AdMYJkn3MHingKXDK1SIbywTRnBA7VpUUODtKQ5 mqkQ43HXP6cJkBk7QoKiGVhP39XOH1uMjoQulQtQm1ANuZUI+kKRLMrk1eVQa2IX 2hyB2ezXkgBveDdtXhH8D4NOzUgzTgPIDllNUVOYg2NMcAgBEecrJVWD4a+c4/Af 49YgJRkiaS9jcxwVMhcj+ATDV7lUF5dsNSfDVZHSyeR+cQQuekpeUSrjEx3uRXeP lj5SFbrANIqgCEzEX9kyanD+1i9udaC94jMcMrPpGZ37wf6id610o/gJ4dfimOoB S/p0Q== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3teg3k5jcd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 09:42:05 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 4 Oct 2023 15:42:03 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Wed, 4 Oct 2023 15:42:03 +0100 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.13]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9F24411AB; Wed, 4 Oct 2023 14:42:03 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Simon Trimmer , Richard Fitzgerald Subject: [PATCH] ASoC: cs35l56: Initialise a variable to silence possible static analysis error Date: Wed, 4 Oct 2023 15:42:03 +0100 Message-ID: <20231004144203.151775-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Mz-5BQscbemOf1J2sAwCXxS1MWd-TJdP X-Proofpoint-ORIG-GUID: Mz-5BQscbemOf1J2sAwCXxS1MWd-TJdP X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:42:29 -0700 (PDT) From: Simon Trimmer read_poll_timeout() is a macro and val will be populated before use, however some static analysis tools treat it as a function and warn of uninitialised variable usage. Signed-off-by: Simon Trimmer Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/cs35l56-shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c index 98b1e63360ae..01b6fa97b36b 100644 --- a/sound/soc/codecs/cs35l56-shared.c +++ b/sound/soc/codecs/cs35l56-shared.c @@ -242,7 +242,7 @@ EXPORT_SYMBOL_NS_GPL(cs35l56_firmware_shutdown, SND_SOC_CS35L56_SHARED); int cs35l56_wait_for_firmware_boot(struct cs35l56_base *cs35l56_base) { unsigned int reg; - unsigned int val; + unsigned int val = 0; int read_ret, poll_ret; if (cs35l56_base->rev < CS35L56_REVID_B0) -- 2.30.2