From patchwork Thu Mar 3 13:37:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 8492701 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 3D471C0553 for ; Thu, 3 Mar 2016 13:38:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A4A12022A for ; Thu, 3 Mar 2016 13:38:43 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 31E922010E for ; Thu, 3 Mar 2016 13:38:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 686C0261483; Thu, 3 Mar 2016 14:38:36 +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 C782826066B; Thu, 3 Mar 2016 14:38:28 +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 2A1A826066B; Thu, 3 Mar 2016 14:38:27 +0100 (CET) Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by alsa0.perex.cz (Postfix) with ESMTP id 0011B266634 for ; Thu, 3 Mar 2016 14:37:59 +0100 (CET) Received: by mail-pf0-f181.google.com with SMTP id 124so15249919pfg.0 for ; Thu, 03 Mar 2016 05:37:59 -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=nEOsxfBIPMyPjG0J1nQ2EzbYurePRTgZDAuFdKwX8n0=; b=eUT6cok5lOvHA/sb203rY4QDyz7ZmX78nMrQxhzgNEUiXrdDbIuC5yetg5n7KudXko Dd8wwjZhVLtfM7UDOUTpnYSKowmTt3bGC+i7LaNZu9YrIAPfd42PjVNHQ4PCAWlhqnSd qbK4GW9qg51rmrZzxPoyGEIntMmmMfRin3hm+kQU+7B6F1SUucNBwTQ9Tat+3OEWjAUf ziDWdxIbWh4x3qK/lWELVI3Xi+zM/d9zjA2KQq58cuve5whYmn8v6b3O+FEt5OvuMuZe YBWrm1iwyUMYH9vxkHhakujj+7U04aWjo3AQg6YUO+4DbpBAQtU1XtOS2ChCoq0RQ03W sdGQ== 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=nEOsxfBIPMyPjG0J1nQ2EzbYurePRTgZDAuFdKwX8n0=; b=OcUqVMEmFHKrRnCv/JgKYQA06w88KYI35ELN5thwhfKi18xXDYqYkbgmlEWocRmwl7 sMhIU3kzD4jBxwXroCjHQupqGGbgNBL1cB9neQWADygfiSI0q99y8jrv/72U9Lvq9psM F6j9OlO7l7vP8pMuEIUULWOdASk8ZHEACpAei57yHw4BwNJNqOPaencmE9a7nJsiN0pB +zr7IeaY//Pj/VNu1+Jv7xAMT3AXkxKRxDg+/QvdHs9jppLXKphMj0GzetIHZ4aaXbh/ wrRuNns3dMad6djAXuRhoeOkmyAoBOiHe/WDFfyJld8GOjtJlwUk8cEzkJcfA6qXZ924 SeLg== X-Gm-Message-State: AD7BkJL2nsD3IabXZBw0c1P//uGmWmvEG4BKXhxrFALmL4cnSILWbc7dXztPM7KxNISDig== X-Received: by 10.98.79.205 with SMTP id f74mr3679151pfj.68.1457012279263; Thu, 03 Mar 2016 05:37:59 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([14.195.231.152]) by smtp.gmail.com with ESMTPSA id 144sm60785095pfa.83.2016.03.03.05.37.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Mar 2016 05:37:58 -0800 (PST) From: Sudip Mukherjee To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Date: Thu, 3 Mar 2016 19:07:49 +0530 Message-Id: <1457012269-30481-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH] 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 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 --- Its upto you now. If you dont want to accept then I will add an extra From: in the commit. But since that will not be a part of my scripts so there will be chances of error. If you are worried about missing signoff, then I can assure you that my scripts will catch that before i can send it. 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;