Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6DF0C10DCE for ; Sun, 15 Mar 2020 20:06:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 291C5205ED for ; Sun, 15 Mar 2020 20:06:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="L+SOwu7U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 291C5205ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 821751871; Sun, 15 Mar 2020 21:05:18 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 821751871 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1584302768; bh=7orrgjujETggp+OERofJStzAcTRtMFusOqWDB767FOc=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=L+SOwu7UgAaAMqw9GfZqmxPn+f3Hpnq5/WYczYgDJwB/Oxggv6a3xYUe+Frpca5cJ 4X6TFHECrClblUKupXy5UnQIwYHaKZ2vPTVcNy+YF7Q36eAQ2B06g7f2c5L9ZwxQK1 F5W2teg2wLTjHsRSR6ciwsgUTCg0l1i/ipPr7Jew= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DDFBDF801F9; Sun, 15 Mar 2020 21:05:17 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C61B5F8022B; Sun, 15 Mar 2020 21:05:15 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 6881FF8013D for ; Sun, 15 Mar 2020 21:05:08 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6881FF8013D IronPort-SDR: 1bguplLPgwJJ7q/Mxz+gWA6Sy7SEYT3pq1ISd9pcyhNIb4loMuxwiAvLwF6/YvFWSQNT4BBGJJ 0Cl/Lvqk85Rw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2020 13:05:06 -0700 IronPort-SDR: snUymknbCVk7rEjEEizyXyuG9lVkHcMmdw4Jt8Fe+TDe/LXIZ1tuS2duUT2M792RYE2DzPyhuP TLXuE3/GxnCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,557,1574150400"; d="scan'208";a="267346874" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.249.138.187]) ([10.249.138.187]) by fmsmga004.fm.intel.com with ESMTP; 15 Mar 2020 13:05:04 -0700 Subject: Re: [PATCH v2 05/10] ASoC: codecs: hdac_hdmi: (cosmetic) remove redundant variable initialisations To: Pierre-Louis Bossart , alsa-devel@alsa-project.org References: <20200312194859.4051-1-pierre-louis.bossart@linux.intel.com> <20200312194859.4051-6-pierre-louis.bossart@linux.intel.com> From: Cezary Rojewski Message-ID: Date: Sun, 15 Mar 2020 21:05:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200312194859.4051-6-pierre-louis.bossart@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: tiwai@suse.de, Guennadi Liakhovetski , broonie@kernel.org 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" On 2020-03-12 20:48, Pierre-Louis Bossart wrote: > From: Guennadi Liakhovetski > > Remove several redundant variable initialisations. > > Signed-off-by: Guennadi Liakhovetski > Signed-off-by: Pierre-Louis Bossart > --- > sound/soc/codecs/hdac_hdmi.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c > index e6558475e006..fba9b749839d 100644 > --- a/sound/soc/codecs/hdac_hdmi.c > +++ b/sound/soc/codecs/hdac_hdmi.c > @@ -1998,11 +1998,11 @@ static struct hdac_hdmi_drv_data intel_drv_data = { > > static int hdac_hdmi_dev_probe(struct hdac_device *hdev) > { > - struct hdac_hdmi_priv *hdmi_priv = NULL; > + struct hdac_hdmi_priv *hdmi_priv; > struct snd_soc_dai_driver *hdmi_dais = NULL; > - struct hdac_ext_link *hlink = NULL; > + struct hdac_ext_link *hlink; > int num_dais = 0; > - int ret = 0; > + int ret; > struct hdac_driver *hdrv = drv_to_hdac_driver(hdev->dev.driver); > const struct hda_device_id *hdac_id = hdac_get_device_id(hdev, hdrv); > > Reviewed-by: Cezary Rojewski