From patchwork Fri May 20 21:17:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 574546 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63665C433EF for ; Fri, 20 May 2022 21:23:15 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A141C177C; Fri, 20 May 2022 23:22:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A141C177C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1653081793; bh=jckmVIiVHj4no1YvqK8AoBjG6gfnTk0wrOWcc8n7rMQ=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=K0r/YyLv3VnUECc80y1neaz8GuK3v40Ys9j19u2ShEv2COhP0sUeBd18B3Bs/oESm Y9kmpSdtZizkw+AMnCBYMYfdtbZV9mQpqZbcz5fyfvkVsuq9mE9CUzrFnNwmn/OINM oV2e+Fz48t1uTEqpmEYgVa4Z5gtXJ8trhTI9T40Q= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 74EBDF805B2; Fri, 20 May 2022 23:18:05 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5B03F80571; Fri, 20 May 2022 23:18:00 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 632A5F8052D for ; Fri, 20 May 2022 23:17:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 632A5F8052D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="V1LNK5UD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653081469; x=1684617469; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jckmVIiVHj4no1YvqK8AoBjG6gfnTk0wrOWcc8n7rMQ=; b=V1LNK5UDrAS5NXSeyR3iJWvL963gS3ydl+V7fNEqLsxT6B9+j4EV/tm1 D47r8SqVFXxyev10YNI9UHnLN7lFJBtR1oEfE+vS6We3reWWLeamUNjdr KHoJgsBCRh9ijE9p0A5KmSAi0sofIV5dRng4/1CY3sAsVZ9NSkBv5Xz8G LLRh0WlNmkXw0Slb0NZbenetV7l4AS0rLPmXYj+Ct5WfAfnhXtzEbs/jN I6CmNSnM0AKMju4i1vorRBlc3JbRRBJl3rjDx15BzDqD6MZJYGYKJo+c/ cx3MdF2NR7Wqg94TLNGKTOgQ+Dl/YkKPx1rrbdwfkHJXSp3MdvKehm1+v g==; X-IronPort-AV: E=McAfee;i="6400,9594,10353"; a="270324255" X-IronPort-AV: E=Sophos;i="5.91,240,1647327600"; d="scan'208";a="270324255" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 14:17:42 -0700 X-IronPort-AV: E=Sophos;i="5.91,240,1647327600"; d="scan'208";a="674796070" Received: from achsu-mobl2.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.212.181.190]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 14:17:41 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Subject: [PATCH 16/16] ASoC: meson: remove useless initialization Date: Fri, 20 May 2022 16:17:19 -0500 Message-Id: <20220520211719.607543-17-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220520211719.607543-1-pierre-louis.bossart@linux.intel.com> References: <20220520211719.607543-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Cc: tiwai@suse.de, =?utf-8?q?P=C3=A9ter_Ujfalusi?= , broonie@kernel.org, Bard Liao , Pierre-Louis Bossart X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" cppcheck complains about invalid NULL dereferences but there's indeed no need to initialize a loop variable. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Bard Liao Reviewed-by: Péter Ujfalusi --- sound/soc/meson/meson-codec-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/meson/meson-codec-glue.c b/sound/soc/meson/meson-codec-glue.c index 2870cfad813ac..80c5ed196961d 100644 --- a/sound/soc/meson/meson-codec-glue.c +++ b/sound/soc/meson/meson-codec-glue.c @@ -13,7 +13,7 @@ static struct snd_soc_dapm_widget * meson_codec_glue_get_input(struct snd_soc_dapm_widget *w) { - struct snd_soc_dapm_path *p = NULL; + struct snd_soc_dapm_path *p; struct snd_soc_dapm_widget *in; snd_soc_dapm_widget_for_each_source_path(w, p) {