Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480281pxf; Fri, 12 Mar 2021 10:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHonY+JneE/EcP35uWjiiTcR2wiLeqgUz24oAmpMQikkvRBvRjTrp65mO8vUDCi3JIsefW X-Received: by 2002:a17:907:75c2:: with SMTP id jl2mr10195599ejc.334.1615573510007; Fri, 12 Mar 2021 10:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573510; cv=none; d=google.com; s=arc-20160816; b=pjbgV/StpIJpYNio5iieh7d9+/BcntOiNkPHZRS8YaNsqWY28rvktnWxxWj4ZwsTXm 175a2uKGr3YZtvmtaQsj0b2dZmVr8iMN2mD5XeRHIeBaopOLKtZbQCPEVECP7a6KpVye US8Hf0vwOhug2HOi68P/cApx4tZnZTVikPYzoVdbwGrRJpxUTj2xWesVl4KncCR9/DbY o/Hue405wgGxrzm2HZkbBJbJXRowUWw8tYgFrTkN/omzmBN7oq4b6w9CTVHO7PCGy88S Oq0mrFLYz/gT6ip5fz/7H1Dut+/iw02wcTTyePnRH5W10U5PJSpMQYW3Iohvf1h548+1 txaQ== 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=oRrlMbBqWCibPIDV6NB6UtwzBtoZebTKyIW3TTJ+8oE=; b=Uji502V5PalJPkSWDYQwlRm9unxmoYNO6yB4QWmef5aVJPImc+UOc7zox43XctGGpz 0gIROxsAmvKjIt6Vn5m8VLdCM9gi0Yh6mkAgPTysRc1Ty6yO3kSuDJgY7tCxEOCZVFmR 2XxN5TZuTDuAgdJ4ML0hQc3DJeRhp+VaMALwzcOevqXaSrL4mN9Cg4OgFkieHSIM2X3X pJVYPHZ0a361zFXW83m23mB1FPjV3wrJDjyWJ+qKOQekuV0FSuTIpHwoEyuE9NKREtG4 dKfxmh7nQX9XrJhb/MweKytANQkJrZYP3NN8ApfXBPTPP0rVvmwh24GcDLhcXMJ4IgDF VZOg== 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 o2si4572307ejx.336.2021.03.12.10.24.46; Fri, 12 Mar 2021 10:25:09 -0800 (PST) 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 S233374AbhCLSX5 (ORCPT + 99 others); Fri, 12 Mar 2021 13:23:57 -0500 Received: from mga02.intel.com ([134.134.136.20]:36942 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbhCLSX0 (ORCPT ); Fri, 12 Mar 2021 13:23:26 -0500 IronPort-SDR: Gwk9R4fkEo/Af4E4FM/XWes7KxgyP8kd1mDG7u/WcDkVvjuxIdCjwDMw2jhobsaNmBqoRm51/F EdhBR9PXoaKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="175999123" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="175999123" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:24 -0800 IronPort-SDR: ds0S0yWIDJ1HBs03JMj+yNt0YAyLpS++2rq6kg9abvuLpIxsQ0w+m9VtYlRKp0eBF/1Ky8f+rv fJYCpW0qJUrw== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377791961" Received: from amiteshs-mobl.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.212.37.30]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:23 -0800 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 , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Cheng-Yi Chiang , Peter Ujfalusi , Stephan Gerhold , Sia Jee Heng , Shengjiu Wang Subject: [PATCH 10/23] ASoC: hdmi-codec: remove useless initialization Date: Fri, 12 Mar 2021 12:22:33 -0600 Message-Id: <20210312182246.5153-11-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210312182246.5153-1-pierre-louis.bossart@linux.intel.com> References: <20210312182246.5153-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 Fix cppcheck warning: sound/soc/codecs/hdmi-codec.c:745:5: style: Redundant initialization for 'cf'. The initialized value is overwritten before it is read. [redundantInitialization] cf = dai->playback_dma_data; ^ sound/soc/codecs/hdmi-codec.c:738:31: note: cf is initialized struct hdmi_codec_daifmt *cf = dai->playback_dma_data; ^ sound/soc/codecs/hdmi-codec.c:745:5: note: cf is overwritten cf = dai->playback_dma_data; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/hdmi-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 422539f933de..83e74ddccf59 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -735,7 +735,7 @@ static int hdmi_codec_set_jack(struct snd_soc_component *component, static int hdmi_dai_spdif_probe(struct snd_soc_dai *dai) { - struct hdmi_codec_daifmt *cf = dai->playback_dma_data; + struct hdmi_codec_daifmt *cf; int ret; ret = hdmi_dai_probe(dai); -- 2.25.1