From patchwork Thu Jul 11 17:21:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad Kelam X-Patchwork-Id: 11040659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E934B14DB for ; Thu, 11 Jul 2019 18:01:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5DE22897A for ; Thu, 11 Jul 2019 18:01:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C555528B53; Thu, 11 Jul 2019 18:01:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RDNS_NONE autolearn=no version=3.3.1 Received: from alsa0.perex.cz (unknown [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D42882897A for ; Thu, 11 Jul 2019 18:01:02 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0B9BF1669; Thu, 11 Jul 2019 19:21:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0B9BF1669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1562865734; bh=4GiEqxh8/DDfj1yshxzvuNWqOPctsXewySqH2mAa8fM=; h=Date:From:To:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Mp6k0LOIv6ea1mjBcUWFD7lJuRtdoJ/bSY0qpkmSII76Q2SJk7Jz7ZqSOGneevv7i KW0N3DRRnVoIv8cJcpgK/bRo0LVnGxvCWVf5c0Yzl3oeO90id9u3dYZDCnPUHKyI4h ltSYnKCVqHjZulXwFZXTZEKEJubMmprOcuHuy21Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7E221F802E0; Thu, 11 Jul 2019 19:21:23 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69B3AF802FB; Thu, 11 Jul 2019 19:21:19 +0200 (CEST) Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 968E7F800D8 for ; Thu, 11 Jul 2019 19:21:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 968E7F800D8 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lh8bol5u" Received: by mail-pg1-x542.google.com with SMTP id o13so3243250pgp.12 for ; Thu, 11 Jul 2019 10:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=gqIivKQ4VDY/9EJ1sbwK6dLkOFlogSrMQDe9qqiMbzY=; b=Lh8bol5uLGKKTqXXXFbj8SySQvu9msm/TdCvjInq2ukTZqn6RGBCUjha/KUKBRGYls i6SPZzkfh3QlXjGM0stTHbhpmRbzZER0lgqUd2/c16m4cGpkJDH8aZls4CblfcQNcXzG LoAiNF1DZghDcr/hRzM1aXcAOXsDbHLwJ0H2MlDszfsXcsSXuBtuiGmjo+ACIZWElKGK uskBrAlSsozclJqt6ZBMxoTN6wj6b5i0KlZdmNhijH4wNwZ2f4M4AgYvXPm04CpnFx4n N65rrYxLXmfYOuHKxqWNXdOZDLT7sirf+iqxG8GfYZPC5lnvawYThxUaZxagNvqFOAjb ya0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=gqIivKQ4VDY/9EJ1sbwK6dLkOFlogSrMQDe9qqiMbzY=; b=mGeV7Y514iUuf1cgkrkLyp8uuMChe4mXLGK7FRXuVouY+/iPMPXSbsIscYLdykCMAG uWj7mSWnRTYUToen+EXIt7/UpHbcCSvgeA4BFAEDQF3LlHFm5l+ZM8NWXqK38NI+GBIp ogHGnJlqYRPs3ATnliTuhKeabU2SozuVl1XKAT2lk5F1EuaLRDFA/MiE6PnO4kKdJ6Mq mZwFS6yWZy/4oEOz7RJQoTEw3DBVxDQdz9mI+MGrOgHTwtV/7zUTLhTZUDLuDZ3FKU7G h3v72PwSpK0xPSZbXUUfbLXlmqMOySvRy3bTnwUKDUH0Av0KfRVu/7MJsABvwToHgTfU xE6Q== X-Gm-Message-State: APjAAAXsYpwmnTD2KQgPbNVq9pxRgYxQ7wJJyANtHOH+DIXzYJUfFtY8 8htw5oMJ1D1tkSmcu9IoD+0= X-Google-Smtp-Source: APXvYqzPcdiAOvWKSNm+hzapTSSmXf8/fGwVdxN3iKtzUnxAXQ7T2pQR9v94JJeawAjbMGky8hIJ4A== X-Received: by 2002:a17:90a:db08:: with SMTP id g8mr5893223pjv.39.1562865673539; Thu, 11 Jul 2019 10:21:13 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id t7sm5111414pjq.15.2019.07.11.10.21.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 10:21:13 -0700 (PDT) Date: Thu, 11 Jul 2019 22:51:07 +0530 From: Hariprasad Kelam To: Jaroslav Kysela , Takashi Iwai , Hariprasad Kelam , Richard Fontana , Allison Randal , Greg Kroah-Hartman , Thomas Gleixner , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Message-ID: <20190711172107.GA5008@hari-Inspiron-1545> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Subject: [alsa-devel] [PATCH] sound: pci: rme9652: Unneeded variable: "result". X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes below issue reported by coccicheck sound/pci/rme9652/rme9652.c:2161:5-11: Unneeded variable: "result". Return "0" on line 2167 Signed-off-by: Hariprasad Kelam --- sound/pci/rme9652/rme9652.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index cb9818a..4c851f8 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c @@ -2158,13 +2158,12 @@ static int snd_rme9652_prepare(struct snd_pcm_substream *substream) { struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream); unsigned long flags; - int result = 0; spin_lock_irqsave(&rme9652->lock, flags); if (!rme9652->running) rme9652_reset_hw_pointer(rme9652); spin_unlock_irqrestore(&rme9652->lock, flags); - return result; + return 0; } static const struct snd_pcm_hardware snd_rme9652_playback_subinfo =