From patchwork Thu Feb 11 05:53:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajan Vaja X-Patchwork-Id: 8276711 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 8C9CFBEEE5 for ; Thu, 11 Feb 2016 05:54:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9868A2035D for ; Thu, 11 Feb 2016 05:54:28 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 627512034F for ; Thu, 11 Feb 2016 05:54:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2CD53260698; Thu, 11 Feb 2016 06:54:26 +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, NO_DNS_FOR_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 20F40260647; Thu, 11 Feb 2016 06:54:16 +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 40494260660; Thu, 11 Feb 2016 06:54:14 +0100 (CET) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by alsa0.perex.cz (Postfix) with ESMTP id DD31D260644 for ; Thu, 11 Feb 2016 06:54:06 +0100 (CET) Received: by mail-pa0-f44.google.com with SMTP id fl4so11859355pad.0 for ; Wed, 10 Feb 2016 21:54:06 -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=jPkGB9hkycwMeXMa+ipQcENoTycZxJkekjkxH7RrZjg=; b=DhnZELW96hul5iWFVpqxBYosZ35/Y8iR6lEsl/TFIXFY+kDkbu+owYTwMqMPLuh9RV 0NglFgChAI+EXFu4ANbfia0FNaLIQj9KVddEMq9wfa2nJGUFh6PgB554ePvbgyG/OF7r zoM8Xbs72zPBjZTvoUKqhPG8U0vKECSm37T4elx023HRmNHSEv5VnR97whTfZ7uq3jat mLE/T56oTNG45LpFWnqXdQSdRhKqfpM0HIlqUf8HMoNORVHIagJJLaLSiyfiGD0S/io8 snu/wtTP+Gm5ZRlNwv/URTceS6o2eNQbf2EJOi4G2IUxZO75qd8MUuPMLzYisCubDZxr gZ4w== 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=jPkGB9hkycwMeXMa+ipQcENoTycZxJkekjkxH7RrZjg=; b=TdtL0A69+Z6NW2f+9h+Hth8VsCrajAisCmejiHuQnlSyevvL1FjQ31nRQnzIP7S1xH TvzGDBWOxUa+7OMMZQfUEy1AvPlkKYIRM22I6GL1qw7TvsIWpPWU7m7nboaijSRdzvFK 4UgGbxuLw0oeBIKc/YiHrD9yNCqBJGdr9yZWVfUk2WyEgmjmeqK2upKaz8FcBetXYYJR +PMoboiAErX/8YKmVj8E41EPnR7JgHezzybj/F/zN9rPolAuTp8sbTh28zW+imShXkdj 0iQg81d8ecT7iRPkmGM2bZJ67OuuW7LRsHddwCdlwSmvXG/QobggBCckVhmi5YYhuUcr 3tTA== X-Gm-Message-State: AG10YOQWLcw4qdVwIuz3R1+9fwRvSp8hcBHWZEQxuOrbfegp6Vk30iMIWU6HZuyZ7DMV1g== X-Received: by 10.66.254.99 with SMTP id ah3mr6387535pad.134.1455170044293; Wed, 10 Feb 2016 21:54:04 -0800 (PST) Received: from rajan.sibshivalik.com ([202.131.115.146]) by smtp.googlemail.com with ESMTPSA id m75sm9099894pfj.38.2016.02.10.21.54.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Feb 2016 21:54:03 -0800 (PST) From: Rajan Vaja To: lgirdwood@gmail.com Date: Thu, 11 Feb 2016 11:23:35 +0530 Message-Id: <1455170015-25009-1-git-send-email-rajan.vaja@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.com Subject: [alsa-devel] [PATCH] ASoC: dapm: Remove unneeded variable ret returning 0 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 This patch fixes coccicheck report: Unneeded variable: "ret". Return "0" on line 2817 Remove unneccesary variable ret created to return zero. Signed-off-by: Rajan Vaja --- sound/soc/soc-dapm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 5a2812f..8dc395f 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -2805,7 +2805,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_add_routes); int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) { - int i, ret = 0; + int i; mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); for (i = 0; i < num; i++) { @@ -2814,7 +2814,7 @@ int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, } mutex_unlock(&dapm->card->dapm_mutex); - return ret; + return 0; } EXPORT_SYMBOL_GPL(snd_soc_dapm_del_routes);