From patchwork Fri Mar 4 10:57:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 8502261 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6DB98C0553 for ; Fri, 4 Mar 2016 10:57:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93F50201C8 for ; Fri, 4 Mar 2016 10:57:48 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 60ED1201FE for ; Fri, 4 Mar 2016 10:57:47 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5191C2657F6; Fri, 4 Mar 2016 11:57:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6111526087F; Fri, 4 Mar 2016 11:57:34 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5888D261171; Fri, 4 Mar 2016 11:57:32 +0100 (CET) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by alsa0.perex.cz (Postfix) with ESMTP id 182FB260673 for ; Fri, 4 Mar 2016 11:57:25 +0100 (CET) Received: by mail-pa0-f50.google.com with SMTP id fy10so33177037pac.1 for ; Fri, 04 Mar 2016 02:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=apK1m3XbWTtqzO/B7XwhF8iK646Uk4tgyMtNNX6Cjs8=; b=ajxhO8NlTb3IBN19MWupcaU+6irdiASZ5u7CuV/I8nTYCiMkf6a9W4xz/EsxCB+F6H lM0M4QxJv14SRsSpiXq/a7RNrqRy7mehsMscR/Tec/K4lQVwVZHXQOaxR9hLcZC6URNT D0dJCLP6KwWG7PvpojiTRd7fB+Oc6RH7SwzGjgl0J9leruYMN9e8N79V/2ZHYc9Tc2oM tMDcq3Y5TErBrkwAJII3vIxZurHnJCh507bpQDOv0clRUiGtz+PKexAncdaGxV+EpUF/ 2ZNVIZHH+RxuUqwmuyXJUJA9ux9ZApoxUNuYCv3omFRueMbz+3QHHTsLM+EOy2Ea9yUw qXZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=apK1m3XbWTtqzO/B7XwhF8iK646Uk4tgyMtNNX6Cjs8=; b=V7EEBVScBQeaPTcIpce0bOxXxy3kr6B26DLgKPG1X+3WjKfIrGjMpuyewJ4Bzu60U8 H6Omg49IiR1vRS/vmY/fi/Cf1twIR1DM7+PTi+IuDwxIw/X9Zj18nLjw6SWqD9KGgR/i WoT9JIe90PrDiPuqv9CYj/wztwlsn5dxrEbvMNHu3aGt24yIVjjBKBsrZxElYLzgWP87 ND7/9X7Lb0dhBrVyj1QdU0n1Ialci0R65hpCIfMRve/dJQdbSEPyMJULzxLO6tu0ejo4 rbiXFxb3UFb4whrnWZdUQVUCxq4gRoDAza5yFKxqfrqavwRd4nkkmZuhN63cQxOO36XE TtMw== X-Gm-Message-State: AD7BkJJoKyQDZaJ8OvxTWBK8WUlxLp1WPy7a6j8qfJptIW3Adf7JtP4GZ771qIXiTDVwvg== X-Received: by 10.66.141.42 with SMTP id rl10mr11183500pab.48.1457089043948; Fri, 04 Mar 2016 02:57:23 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([14.195.228.83]) by smtp.gmail.com with ESMTPSA id d22sm4685347pfj.32.2016.03.04.02.57.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Mar 2016 02:57:23 -0800 (PST) From: Sudip Mukherjee To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Date: Fri, 4 Mar 2016 16:27:14 +0530 Message-Id: <1457089034-12951-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, Sudip Mukherjee , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2] ASoC: pcm3168a: remove unused variable X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sudip Mukherjee While building we were getting build warning about: sound/soc/codecs/pcm3168a.c:403:21: warning: variable 'channels' set but not used The variable channels were being assigned some value but that was never reused. Signed-off-by: Sudip Mukherjee --- v2: From: address changed sound/soc/codecs/pcm3168a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c index 0c7248a..992a77e 100644 --- a/sound/soc/codecs/pcm3168a.c +++ b/sound/soc/codecs/pcm3168a.c @@ -400,13 +400,12 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream, struct pcm3168a_priv *pcm3168a = snd_soc_codec_get_drvdata(codec); bool tx, master_mode; u32 val, mask, shift, reg; - unsigned int rate, channels, fmt, ratio, max_ratio; + unsigned int rate, fmt, ratio, max_ratio; int i, min_frame_size; snd_pcm_format_t format; rate = params_rate(params); format = params_format(params); - channels = params_channels(params); ratio = pcm3168a->sysclk / rate;