Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1786261pxf; Fri, 26 Mar 2021 15:01:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUhf1SQ4q87y7TaR1eZOZDyZt7H+3o6C0JfzM5z21rtbkJa0M225p9cYoj/jNEshcFLsvV X-Received: by 2002:a17:906:aac5:: with SMTP id kt5mr17943828ejb.548.1616796093883; Fri, 26 Mar 2021 15:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616796093; cv=none; d=google.com; s=arc-20160816; b=V0OZAwWegb3UxMpCsSguy845P/k8Y/dUzu176SF1B71C1cdBlNQ4eZL1lfjasH36ER xBicMgSH6m2SSfKmw/Au2yS6hp2ovdb19vOBuonzvwQ+Wono/xJkfAO/Y0MoGKd3uSyc jg8xtaLjZx3294UXfelgl+xORCJFmaJTqV+pAN4LbZ5e9b7ZimmklOnI1PynbxXQ4m8P l2ykWkXrX4eCP3A2SKJUbq5xrhf25euKIml8/B0qaHYvSzEbDquCCYiTItiQpvYfkP2F j6teFvl+nYkhFbbLOHYfLPUZG03NwpBBG06PakSm4qWxsHei4XHMZaM8Jy+WhPwXFk7c RFsg== 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 :ironport-sdr:ironport-sdr; bh=zQNMXt8ASmbwF7lmLMmvSLDjsgBsPoN8POBYyuBCFTo=; b=dJqbeU2QjiiB54x3JdjW4WDaLt244n62nHP+01zPRDhO1YXUROhvpVwbpHxg6Sr73M E0PhQSNQccbhjx3pmg2lvjoh+kYBGmogiSmFA+Fb0jtNnGtowz7Q0D33hJRTWG5r7ZrR R6dp7EExjYyE3YxZ6qh/7N75MpTxYqp8UYn6I7E2PI/15UeTf17N9S/3rmoVnpJEVPAR vyPeVrcozI6y49LFE+7h7g3m64qBxEAFB6Jj7OnBXQXoB4zuJQQaXogG2pngG0fpuISa VQkN0HkjMgGE8/kosewnHgfk/7/zgtKxFv/1HcfKqZrflHs2s89V3LouBkDu1BMP/l6O GVYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl4si8068029ejb.229.2021.03.26.15.01.11; Fri, 26 Mar 2021 15:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbhCZWAM (ORCPT + 99 others); Fri, 26 Mar 2021 18:00:12 -0400 Received: from mga04.intel.com ([192.55.52.120]:61331 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbhCZWAB (ORCPT ); Fri, 26 Mar 2021 18:00:01 -0400 IronPort-SDR: g9g39eT7tdmy5pEQkseimJIgFdLCpT9D8fAqalLmywrTDHRz0gxhKkxB5S7WijcaB3ULfXFdoJ m6kEAihn2A2A== X-IronPort-AV: E=McAfee;i="6000,8403,9935"; a="188957073" X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="188957073" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 15:00:01 -0700 IronPort-SDR: dJ+318LZoLkx+tEgRq6r4XoeOcWNyo7aGBSaCulwoJHxbRfbxYzt2w+vpi/aQPWgdOt6t2L2Mb 85pAMZ15mLOw== X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="416706701" Received: from zcmahone-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.255.231.203]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 15:00:00 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, linux-kernel@vger.kernel.org, Pierre-Louis Bossart , Jerome Brunet , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kevin Hilman , Neil Armstrong , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support) Subject: [PATCH 05/17] ASoC: meson: axg-tdmin: remove useless assignment Date: Fri, 26 Mar 2021 16:59:15 -0500 Message-Id: <20210326215927.936377-6-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210326215927.936377-1-pierre-louis.bossart@linux.intel.com> References: <20210326215927.936377-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cppcheck complains about potential null pointer dereference but it's rather an unnecessary assignment to NULL before walking through a list. Signed-off-by: Pierre-Louis Bossart --- sound/soc/meson/axg-tdmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/meson/axg-tdmin.c b/sound/soc/meson/axg-tdmin.c index b4faf9d5c1aa..49b613a1faf2 100644 --- a/sound/soc/meson/axg-tdmin.c +++ b/sound/soc/meson/axg-tdmin.c @@ -57,7 +57,7 @@ static const struct snd_kcontrol_new axg_tdmin_in_mux = static struct snd_soc_dai * axg_tdmin_get_be(struct snd_soc_dapm_widget *w) { - struct snd_soc_dapm_path *p = NULL; + struct snd_soc_dapm_path *p; struct snd_soc_dai *be; snd_soc_dapm_widget_for_each_source_path(w, p) { -- 2.25.1