Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1786567pxf; Fri, 26 Mar 2021 15:01:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz52l+zXhiksCJl5DAA0MbvtBjsFTL2XYZxQ9wb0aiMTlOq9zTWvtGnJkVADj80RwGHRiHE X-Received: by 2002:a17:906:16da:: with SMTP id t26mr17467057ejd.270.1616796115643; Fri, 26 Mar 2021 15:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616796115; cv=none; d=google.com; s=arc-20160816; b=dVdpISO7PD6Jvml44uuv9/ONem4mgvMiQR+Na65/GfDhVMt74mpfK3HJZDXgkJYwKZ zIJP/DKRmd4nz3HI3ysTCOIqYEuVP+8LLqXKaaZiidZmuqHoBblJtKRkBrw3s30NDBgk ChIpZHoGOLlH/Lt1hbWEPbOPmI1SFLIqmQjF/Ef6qYBGnDnQ/D8kt2jj+8X/x688so7B MRdTctHskcddlyexNQGAyVh1zQHb91//UTukdmw91m/6nT7QGsThS5SPSD2WEZYBnHes JM/LqbGmbnZEXuNsnGyQH5J24pfqalll2MAMu1E3OFgf/7NGCzEMCapdxYAX2bEydA5W 4TkA== 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=7YpuQqpd1NfFhx/KHEk9qOImcESSrHpysKHe17fi82g=; b=rFiADqND6VuFjKaEBUuKkpcUIIQ0AhTZHFYI2mFP6liGf4x75LM2Th1ulSX+9TfKGR kL+sVyOje/OzE1k0ac5z2IeE4eMTiAk1Wb9Sipx9uhih7aDcmQGKl+yGfpEYarddRRYT /E31cZSfiUCiO8h2bX9QK9/87eGyTIuDtdNSFAjKlcH80w8lKOonZ8NmzLzOROFJjuZb LrNTlf0eMf1OcXJoyYz4pY4bHtB32/161J5qrtNknLaKQU7Wgvv3JLCkKjnn0XHlWS43 ERKhCjfkVkV9XEBLcUO39r2zVpdJsKrctpd1bfjkanwGDK8+sT2+RyH0yvOO7nKV9pF9 Ou/A== 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 k24si7796663ejk.354.2021.03.26.15.01.33; Fri, 26 Mar 2021 15:01:55 -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 S230401AbhCZWAP (ORCPT + 99 others); Fri, 26 Mar 2021 18:00:15 -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 S230076AbhCZWAE (ORCPT ); Fri, 26 Mar 2021 18:00:04 -0400 IronPort-SDR: XzdRhD3dogsY6uNHDcLJ1tu0bXZBaeZaQKPR0HQd010VKoo20xgRCyXQomt00KzSyo0aJTIRAS W/WjqM27tKXw== X-IronPort-AV: E=McAfee;i="6000,8403,9935"; a="188957079" X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="188957079" 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:03 -0700 IronPort-SDR: k452R5PC7AuTzdInNTE8FTULNhgjX0aHe3MyRhA+Ej9wOWt/t6+uqk55DgmPxKs/5hfHBexVxP vwMEv0glsvyA== X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="416706715" 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:02 -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 06/17] ASoC: meson: axg-tdmout: remove useless assignment Date: Fri, 26 Mar 2021 16:59:16 -0500 Message-Id: <20210326215927.936377-7-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-tdmout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/meson/axg-tdmout.c b/sound/soc/meson/axg-tdmout.c index 3ceabddae629..22d519fc07b2 100644 --- a/sound/soc/meson/axg-tdmout.c +++ b/sound/soc/meson/axg-tdmout.c @@ -55,7 +55,7 @@ static const struct regmap_config axg_tdmout_regmap_cfg = { static struct snd_soc_dai * axg_tdmout_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_sink_path(w, p) { -- 2.25.1