From patchwork Tue Sep 8 20:21:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 7143081 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 85974BEEC1 for ; Tue, 8 Sep 2015 20:22:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFF6B20924 for ; Tue, 8 Sep 2015 20:22:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 801C420810 for ; Tue, 8 Sep 2015 20:22:57 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AFF102652C4; Tue, 8 Sep 2015 22:22:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 80D8B265128; Tue, 8 Sep 2015 22:21:56 +0200 (CEST) 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 180D72651AC; Tue, 8 Sep 2015 22:21:55 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D29B72650F7 for ; Tue, 8 Sep 2015 22:21:44 +0200 (CEST) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BE3D3AD71; Tue, 8 Sep 2015 20:21:43 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Date: Tue, 8 Sep 2015 22:21:41 +0200 Message-Id: <1441743701-28165-6-git-send-email-tiwai@suse.de> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1441743701-28165-1-git-send-email-tiwai@suse.de> References: <1441743701-28165-1-git-send-email-tiwai@suse.de> MIME-Version: 1.0 Cc: Liam Girdwood , Mengdong Lin Subject: [alsa-devel] [PATCH lib 5/5] topology: pcm: Remove unused variables 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Fix gcc warnings: pcm.c: In function ‘tplg_parse_stream_cfg’: pcm.c:160:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^ pcm.c: In function ‘split_format’: pcm.c:267:13: warning: unused variable ‘ret’ [-Wunused-variable] int i = 0, ret; ^ Signed-off-by: Takashi Iwai --- src/topology/pcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/topology/pcm.c b/src/topology/pcm.c index 6e42aa18b99b..18d5f0b1b040 100644 --- a/src/topology/pcm.c +++ b/src/topology/pcm.c @@ -157,7 +157,6 @@ static int tplg_parse_stream_cfg(snd_tplg_t *tplg ATTRIBUTE_UNUSED, struct snd_soc_tplg_stream *stream; const char *id, *val; snd_pcm_format_t format; - int ret; snd_config_get_id(cfg, &id); @@ -264,7 +263,7 @@ static int split_format(struct snd_soc_tplg_stream_caps *caps, char *str) { char *s = NULL; snd_pcm_format_t format; - int i = 0, ret; + int i = 0; s = strtok(str, ","); while ((s != NULL) && (i < SND_SOC_TPLG_MAX_FORMATS)) {