From patchwork Tue Jul 7 19:06:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 235021 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1187057ilg; Tue, 7 Jul 2020 12:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRUoDJ1L2HhmzdrYr+QciydOi57iPa6SA4/rUQ1nh+YQY66Lxv6tTXvkhD3jEahxn/mumg X-Received: by 2002:a05:6402:94f:: with SMTP id h15mr63965932edz.313.1594148809588; Tue, 07 Jul 2020 12:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594148809; cv=none; d=google.com; s=arc-20160816; b=whHMcke1zPbpML7xjl784i0TKD9TUHMh1BkaWE3//Q7KBSyuN8XaB8BeU9OPFiEUHP Q115bM/vxAblRCwy6QJyds2LwodAzreNYmSRc2hXCAqNjA0Kt1Kq9CBAm9YbDtSxP02a fTi+Bf9GCSdYpfjgZNo+zzbSREetscNU4aJjK5X2Ktu4rmvukhCZw2NnLSfXNdB8Twah qMnvHPOP+t/P9ujieOcTQvKR1pto+8fcg7XkteglLvbjdjw3TynBrwiA8yKX3EY2Ma8a QYn22cmsmBO7Th1XoSClb5mQibhKqi3u1Q2RVH8B2LIsXsAy615WM/UiySehfWmpsg8k TggA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=hJX2zPnQMWwJ5wZV5oY0iuvRpw2D7cVWKwjLctEyc+A=; b=UwI89Ye7vywyc06TVY7HXl1jCRERO6wE3Xem7W7EYKxtQTrrYo4+3iBn+74/slWIey VOovXrvnrUFFUilFaRc5FQ4HVh9Qc73LmusfnbuYKbALZgwybvanWyE+yavFdWA6zi3W 2Rl5tLLSI4x4QXkwenrSvi3E91+k3vfOlbbpb3wl6cVNYgo+MYel3wNZ7MEurRoe8Hg9 dYWq/a/Fmu4Drlyi2I5tsyQzxA+wGoZPPmj20HWhDm9AkflUCmZ4Y5ehCsrfp82wI/iI RXhVCN2ksgZZ8A7Nz4Xzac3V+MLg6BWGLtl1HMN94ICrLmUyLXBjGnEzHCvPkLIShrWk d/dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 bu2si15854674edb.423.2020.07.07.12.06.49; Tue, 07 Jul 2020 12:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1728847AbgGGTGs (ORCPT + 4 others); Tue, 7 Jul 2020 15:06:48 -0400 Received: from mga17.intel.com ([192.55.52.151]:46557 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728872AbgGGTGr (ORCPT ); Tue, 7 Jul 2020 15:06:47 -0400 IronPort-SDR: oC/Wi2mamMMEbCuYlglLfD9Mcuzf7qKuMciYrToTos7ylhlpZ+brEgGBYlZz03aMXyQyhjOKL9 f7VqjFqryh5w== X-IronPort-AV: E=McAfee;i="6000,8403,9675"; a="127764324" X-IronPort-AV: E=Sophos;i="5.75,324,1589266800"; d="scan'208";a="127764324" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 12:06:47 -0700 IronPort-SDR: np5h6z3uYM5ayhkdF+jDw9VOs2oMJMXG8Ow97LTi0iDGjwbWyuFe1MCE7Ift8BwN9owYOHxmc5 F7aYlZdLp3Kw== X-IronPort-AV: E=Sophos;i="5.75,324,1589266800"; d="scan'208";a="268278616" Received: from mrtorger-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.254.77.62]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 12:06:45 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Lee Jones , Peter Ujfalusi , Jarkko Nikula , Samuel Ortiz , linux-omap@vger.kernel.org, Pierre-Louis Bossart , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 09/13] ASoC: ti: omap-mcbsp-st: Remove set, but unused variable 'w' Date: Tue, 7 Jul 2020 14:06:08 -0500 Message-Id: <20200707190612.97799-10-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707190612.97799-1-pierre-louis.bossart@linux.intel.com> References: <20200707190612.97799-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Lee Jones Looks like 'w' has remained unchecked since the driver's inception. Fixes the following W=1 kernel build warning(s): sound/soc/ti/omap-mcbsp-st.c: In function ‘omap_mcbsp_st_chgain’: sound/soc/ti/omap-mcbsp-st.c:145:6: warning: variable ‘w’ set but not used [-Wunused-but-set-variable] Peter suggested that the whole read can be removed, so that's been done too. Cc: Peter Ujfalusi Cc: Jarkko Nikula Cc: Samuel Ortiz Cc: linux-omap@vger.kernel.org Signed-off-by: Lee Jones Signed-off-by: Pierre-Louis Bossart --- sound/soc/ti/omap-mcbsp-st.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 Acked-by: Peter Ujfalusi diff --git a/sound/soc/ti/omap-mcbsp-st.c b/sound/soc/ti/omap-mcbsp-st.c index 5a32b54bbf3b..0bc7d26c660a 100644 --- a/sound/soc/ti/omap-mcbsp-st.c +++ b/sound/soc/ti/omap-mcbsp-st.c @@ -142,11 +142,8 @@ static void omap_mcbsp_st_fir_write(struct omap_mcbsp *mcbsp, s16 *fir) static void omap_mcbsp_st_chgain(struct omap_mcbsp *mcbsp) { - u16 w; struct omap_mcbsp_st_data *st_data = mcbsp->st_data; - w = MCBSP_ST_READ(mcbsp, SSELCR); - MCBSP_ST_WRITE(mcbsp, SGAINCR, ST_CH0GAIN(st_data->ch0gain) | ST_CH1GAIN(st_data->ch1gain)); }