From patchwork Mon Oct 2 08:46:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13405649 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 C77A7E784AF for ; Mon, 2 Oct 2023 08:48:02 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2F2D8E0D; Mon, 2 Oct 2023 10:47:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2F2D8E0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1696236480; bh=IYdYbzwnjS9nSJtH9hd3gf98UNr6gUicSLj+ccO+KTk=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Dy7RCw5daj40zUXEbQS7eyRfydkcvmdGcwb3jT2klAHo6QcswC//cuaWxHXYWY0dG ZUNcKGKCqLAqCF9/gtZesp6qt/kRJyWOaOcOyQPdScJrnqh5dsInFPSG1/Ef/hpxDe 3xHO9bviFy4T7MmH9ucRa8TUmYKU5ak8qKUmsr/0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 40A75F80557; Mon, 2 Oct 2023 10:46:41 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D1C99F800C1; Mon, 2 Oct 2023 10:46:40 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8F8A0F80310; Mon, 2 Oct 2023 10:46:34 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) (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 6248DF800C1 for ; Mon, 2 Oct 2023 10:46:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6248DF800C1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DRfAaJVr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696236388; x=1727772388; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IYdYbzwnjS9nSJtH9hd3gf98UNr6gUicSLj+ccO+KTk=; b=DRfAaJVrpv2WEkskoNxa7O5Fb3wlo4FBnkPtxlepU/9UtVk58RWQfiq/ 2S9wgFIl+yxmjKZE2G3DlnsVv9mo9bEXWo3XI8/BdReP6AaS5l2/NcP9+ vLp72iUk9I429u8i12LMLNE05d6RKO4jjJ1yr5e5Hbubvo0tASnXT241Y ZBMuU6ms/A6fW/3C376rx+arKW63kGnw/WAuXetO8u1TweqIym/+opbkG Ti6027vs0YR45yxJg2MFEp8Y1ps3TLsujX+eE5zIA8IbHV8zIlk/tAgfj Iq0T8Q1781Ia1IUseSIcs2XrcI0ECx4NmMBSStG0qx3ALgHvR3BmLrgWe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10850"; a="362871439" X-IronPort-AV: E=Sophos;i="6.03,193,1694761200"; d="scan'208";a="362871439" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2023 01:46:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,193,1694761200"; d="scan'208";a="1454347" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa001.jf.intel.com with ESMTP; 02 Oct 2023 01:45:41 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= , kernel test robot Subject: [PATCH] ASoC: Intel: avs: Remove unused variable Date: Mon, 2 Oct 2023 10:46:29 +0200 Message-Id: <20231002084629.903103-1-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: ZCJS5Q7TPJ2SATDWZEEGV4EKVMHAP2TJ X-Message-ID-Hash: ZCJS5Q7TPJ2SATDWZEEGV4EKVMHAP2TJ X-MailFrom: amadeuszx.slawinski@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Recent commit removed the only user of bus variable in avs_dai_fe_prepare(), also remove the variable itself. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202309292121.5DdaNpLj-lkp@intel.com/ Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/pcm.c | 2 -- 1 file changed, 2 deletions(-) base-commit: c0a68c96c76dfe139cd89e0b9ec40e25ded8e91d diff --git a/sound/soc/intel/avs/pcm.c b/sound/soc/intel/avs/pcm.c index 7b84197bd8b9..5b31203bd56a 100644 --- a/sound/soc/intel/avs/pcm.c +++ b/sound/soc/intel/avs/pcm.c @@ -603,7 +603,6 @@ static int avs_dai_fe_prepare(struct snd_pcm_substream *substream, struct snd_so struct avs_dma_data *data; struct avs_dev *adev = to_avs_dev(dai->dev); struct hdac_ext_stream *host_stream; - struct hdac_bus *bus; unsigned int format_val; int ret; @@ -613,7 +612,6 @@ static int avs_dai_fe_prepare(struct snd_pcm_substream *substream, struct snd_so if (hdac_stream(host_stream)->prepared) return 0; - bus = hdac_stream(host_stream)->bus; snd_hdac_stream_reset(hdac_stream(host_stream)); format_val = snd_hdac_calc_stream_format(runtime->rate, runtime->channels, runtime->format,