Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10771517ybi; Thu, 11 Jul 2019 10:43:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqytE74J5PH/0hEXHeJc7DDEJ0cB90zok0kwXTQzBUCQ4A/qRnC4SpT5mg2kE3yqVL1N4Y1p X-Received: by 2002:a17:902:654f:: with SMTP id d15mr5614908pln.253.1562866984103; Thu, 11 Jul 2019 10:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562866984; cv=none; d=google.com; s=arc-20160816; b=kFEO2W8Jh39TAJ5eW7Y+r58U8uomqg1Tp0/Da6sobbDUXvEVOlVBt7SqDizLMBZ20r qDM8G/7B6G8uzF+8Kjfrt+O5M86PPIqD57BL54/TOJQu1YSoG317ItthTsDOM1vxQGBX Jh679ceXl7PqAD6xRSO9gCw5tSi77xmioZQ/rtaUvGSxTu3U0/WflsIf84RTCqDLeuMJ gKNg+tFgbP9CrGyI53OvIukPpnxus3TjOcxe1DI/Fi4qxt4z6W3XBYHExm3u7wRZD1GR cqlltDrM+mCUtWhuA+O00Xsg7NVVulfESLiYAU9NbyzdJaJjeCWh/i3VYz7qhxEGKLXk 1Bcg== 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=gqIivKQ4VDY/9EJ1sbwK6dLkOFlogSrMQDe9qqiMbzY=; b=OwRZXjuOvhseORGo5AaMHMGlnrLNEHH+IgXFIY1jJvpXLB0FapgHylgjrS80eXvmKW gQfUJOHv0NsqHOnxD+GfwwvSpf5Eikh2SQE0P9YVcJeR4ylnzkZ869+waaK0/JLKkz3n Xxwj+ABNtt8RHSZgH0hP+8MdhmYb58EESiQ1FI/qs8t1VvC0xpnRUiwy8iRNoHCXnoFk TXsaHzJxdK0WdH3vnPDAYRL7FLLqjVNh4DXdRpcukqkiNcXTKt2bjnUq2dbkaTt1h7Zz zcstiaCMmzXbJ2dvanfUDxx4YPSiolekWHwW0p4jE+AtCsJcALyBhpGbdp7VjZtQ2zUS +WYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lh8bol5u; 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 f5si5619137pgq.137.2019.07.11.10.42.45; Thu, 11 Jul 2019 10:43: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=Lh8bol5u; 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 S1728823AbfGKRVO (ORCPT + 99 others); Thu, 11 Jul 2019 13:21:14 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46717 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbfGKRVO (ORCPT ); Thu, 11 Jul 2019 13:21:14 -0400 Received: by mail-pg1-f196.google.com with SMTP id i8so3239700pgm.13 for ; Thu, 11 Jul 2019 10:21:13 -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=AefZPj6cl2Wj2Xjv4xU+/Hnc2sVO3zzD4DflHfsxQiKVD9TgMsqUHYwkQox8MOhhb/ tNaO8Z7knb+tXkjCyOTiH8BFjkw1jEBDC+EL6gxuVzFpF3J+u1PaP+9Rx5+1ZeDxeW3y I7SxrSkhIGEhrGD/kQCQfj7h2XDZmwg1nMRvMkcSHW5PeeBX1EYCR2Z7xsa8F5QL/1jO cOMJUEh2by7Ju9IqjlEIepcppZlYVw3G2njPGYIHX04pIZwN3+NW2i/57WVHvUTYGsYB A5olu2bUQSIbA9MbwsePP0QjXxc6VRj5KfVzwiLwvB4V0KDrj3bWW8q8wcQ5fDKnU7dJ InxQ== X-Gm-Message-State: APjAAAUBubvTKHrueYkFHPNj6UAFF6u6Yvo3OsC5rNhH9H7cT3I6NJPw VCyqk5xKeClRCtIg7Zp8KIA= 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 Subject: [PATCH] sound: pci: rme9652: Unneeded variable: "result". Message-ID: <20190711172107.GA5008@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/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 = -- 2.7.4