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 D9FDACCA47E for ; Tue, 14 Jun 2022 18:49: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 6619F184E; Tue, 14 Jun 2022 20:48:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6619F184E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1655232553; bh=eOyqDZuqaiOs6xJm5q38O8F9rb//aReCl5ThOZoPPXI=; h=Subject:From:To:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=l4CYxTtF4JuIfXDeDjPJoeVBHKHCE6jih66Ie4QaeQs8OSWfQMyudDVgDBWAO/GxK WEfkoPqzwyVSlpzoh5ulmlcPpAAYWIjqcx9MNwpD4aIz9fLqk2KI2r/N9PXQsdv7+5 L1mQ0lDHf9DbEPclN3rT8vnEigqQBLCeWoPCt19Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DCC1CF80137; Tue, 14 Jun 2022 20:48:22 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AD416F80139; Tue, 14 Jun 2022 20:48:21 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 6C148F800E1 for ; Tue, 14 Jun 2022 20:48:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6C148F800E1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H4QgXJaz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655232499; x=1686768499; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=eOyqDZuqaiOs6xJm5q38O8F9rb//aReCl5ThOZoPPXI=; b=H4QgXJazCDVdcalN6uoRDa7ZRNbYoNRK2SApnQigRGM1icy5viFbxC+A tqV9/XVZmZcgfPk0H01wsasU91MaKlwmj3N7RlGqjSmVagSPAbatpAFDz gDgcvN2iBOntTajy7VgfKFhUF2orgqcqHeV97JU2M5tmArZARM4k6bILi K4qtRMCZNToFSpLzt3mRsT8FbviITG5LgoDcpFVWpt9BK3xzmdlbAaMpl Be/oUloN+BOC/JRK8hzD2ccd1Gm3y0HpnHS+hrb7obsgrLl+iCH/JKMYY PUaNyFhumzzc0x0rYb077Ep2tBd9o3WyK0TlJMt7kKuY5JTcS2jBNHdRX Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="279428054" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="279428054" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 11:48:13 -0700 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="640525207" Received: from ticela-or-153.amr.corp.intel.com ([10.254.6.136]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 11:48:10 -0700 Message-ID: <606859dd0edcc2330fc353b0cb15395ed883b5bc.camel@linux.intel.com> Subject: Re: [PATCH] ASoC: Intel: Skylake: remove redundant re-assignments to pointer array From: Ranjani Sridharan To: Colin Ian King , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Date: Tue, 14 Jun 2022 11:48:10 -0700 In-Reply-To: <20220614183809.163531-1-colin.i.king@gmail.com> References: <20220614183809.163531-1-colin.i.king@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.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 Tue, 2022-06-14 at 19:38 +0100, Colin Ian King wrote: > There are two occurrences where the pointer array is being assigned a > value > that is never read, the pointer gets updated in the next iteration of > a > loop. These assignments are redundant and can be removed. > > Cleans up clang scan-build warnings: > sound/soc/intel/skylake/skl-topology.c:2953:3: warning: Value stored > to > 'array' is never read [deadcode.DeadStores] > sound/soc/intel/skylake/skl-topology.c:3602:3: warning: Value stored > to > 'array' is never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King LGTM, thanks! Reviewed-by: Ranjani Sridharan