Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8605177ybi; Tue, 9 Jul 2019 19:35:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2f5FAx/8Zx/EqMyr7yH2d36zuPowZecIYyq094/7mUb98W+LZQL4lcxdqWfD9izVHB78d X-Received: by 2002:a17:90a:a404:: with SMTP id y4mr3990905pjp.58.1562726104391; Tue, 09 Jul 2019 19:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562726104; cv=none; d=google.com; s=arc-20160816; b=FFgeVs9kBINEN7m4b4LM2DQUkRTcM1pW4Ne+FEjMJ3Kj/ROcEs42bipbmE2M5Z8PP0 vDf+HTWwwRhy78fdlHc5Quc4WkCT9b9B/xNOuOC0KHjjJm4E+Z2pmkNlw4l8ZHgeswl/ i16rdRJDpCyLS5V+qNlc8XhcfzVzR18v2/Y5dPvXGpr9szcfiuJTD6jtlcOfgBR+i8s8 zLb2t3+zGKkkClXZ4OmIApXpIXs6tqIwkphrEgmJeIHcnn5+uLN4G0qDyOlDRApMT16y XjyKrTI9bcBmDCmXX1TZvu02cotHabZ+WHhZZeTy62+0hkg2WfnRm64luavPYbWu5FTO ny8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=4cRP2WCZtummGCJmZjETlwBuipDUxE57gp0VCpL4ho0=; b=H8una5eWaIF6dlqNMhNJF/wy+n9mIAWA4hKO5V94g2lSZWp6+sNl9eYD+eXa+Tp0Ao RP9rcVi63gVhKL7Hu5Zou2FwGbsdB1fO2H5vH0z0RcvUqdLfHxQkZMXT4xW3cjhw5a4Q r4odZ+x1v5Ndq8XAoGGTqusLcbPqrjXq/LC8NRtvUART5geGLxO7yYjsymX02G8H4ohs DMKCc19wcn7e8M7nkXIL2AF2NUeCnq1kmzfbIh0TBCs6llOggdNq9s69e3FQHAGoM9nA C42pywfvRtLmKgMssp8C66YUU+94KG+bWzeCfEuqe8mKXaH8bboCYUh6g+OaXdCc3U0L taeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TcSDpgWZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c139si837115pfb.140.2019.07.09.19.34.48; Tue, 09 Jul 2019 19:35:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TcSDpgWZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726394AbfGJCbG (ORCPT + 99 others); Tue, 9 Jul 2019 22:31:06 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40502 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfGJCbF (ORCPT ); Tue, 9 Jul 2019 22:31:05 -0400 Received: by mail-pg1-f196.google.com with SMTP id w10so414012pgj.7 for ; Tue, 09 Jul 2019 19:31:05 -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=4cRP2WCZtummGCJmZjETlwBuipDUxE57gp0VCpL4ho0=; b=TcSDpgWZpw8sLhLS8hOEKXei4aNVrcM8KH61CL66GmWu2wgPFvVSi1uI0KpG/X5wx7 U3/NtP/DhFikSl/ERcT7WzTpI5aoHCqbd5myNR8Lqz5jvDq4I3tPLttR77m+WWBI53+R 8yIev1fHE3BiekEOcKVZVG0TKmytVuJFlSoSFRh/HvdVgEHk3NCAuIxVczM6S0shEyQ7 4aZlPQDVNc6BSxjU1WKFcr54DcTQIU13U03lCUhpxuAkHl18SC1YRIcwceeVqWwyAJ+4 P/tIyqBMyaX4otCiZMtZiPFWxHTr93pRnBMiin2SlBQeTPbbVs2efCYCtLRWHWjR8Dry hoZQ== 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=4cRP2WCZtummGCJmZjETlwBuipDUxE57gp0VCpL4ho0=; b=D0fIuFQPVp7Fjjj7VLMSp+7cHUnBQdKpxdBglcWwHuX0UKBS2rdJUIQCCVIxxcPktE ZiFbaooe71Zjtx9GaOu/XMRahaemkiNNf7cheQEouMuuq3HwnCv3ahUKxszZzZFkiplQ kIyN2UFa+g2oib1grWjDUnWAK+IkkfZ8c05oVG6XRTG5nUHKgxmUwDWk/sjRao0PvV9p 5H/N1toJfTzBkOOzz2vyblmjmYJS1/cRWukHHI11olQM6UUYUVHI5dDN9lRHhGjgElzc WEoFG1VZ1ukOa2iaLT+kIfQCqovY0hu7gAtRkYkDiK1ZB09D0YTCi1Xy8jG8V/x4FKuO XLPQ== X-Gm-Message-State: APjAAAVGbDAQLl8+mP9qy1LZ4VN6/Bl9IqLndNsN73k5QxuhRNGW0uQT YzydFYz0J0I8NpXJREdRntM= X-Received: by 2002:a17:90a:8c18:: with SMTP id a24mr3622949pjo.111.1562725864971; Tue, 09 Jul 2019 19:31:04 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id r7sm387790pfl.134.2019.07.09.19.31.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 19:31:04 -0700 (PDT) Date: Wed, 10 Jul 2019 08:00:59 +0530 From: Hariprasad Kelam To: Jaroslav Kysela , Takashi Iwai , Kate Stewart , Hariprasad Kelam , Allison Randal , Thomas Gleixner , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] sound: pci: lx6464es: Remove unneeded variable err Message-ID: <20190710023059.GA14204@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below issue reported by coccicheck sound/pci/lx6464es/lx6464es.c:256:5-8: Unneeded variable: "err". Return "0" on line 258 We cannot change return value as its registered with snd_pcm_ops->close Signed-off-by: Hariprasad Kelam --- sound/pci/lx6464es/lx6464es.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index 1771a6d..583ca73 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c @@ -253,9 +253,8 @@ static int lx_pcm_open(struct snd_pcm_substream *substream) static int lx_pcm_close(struct snd_pcm_substream *substream) { - int err = 0; dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n"); - return err; + return 0; } static snd_pcm_uframes_t lx_pcm_stream_pointer(struct snd_pcm_substream -- 2.7.4