Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8610323ybi; Tue, 9 Jul 2019 19:41:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqy74KFNU5PDkaOLuZHeI+hcJitPgpqorg7KtLEEZ4DDOOuYFnOBCwIORge59PPHor6Lbc2/ X-Received: by 2002:a63:5c7:: with SMTP id 190mr33600265pgf.67.1562726518612; Tue, 09 Jul 2019 19:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562726518; cv=none; d=google.com; s=arc-20160816; b=qL+By30Z7lQsHFKegVwEZLWUloOyE6vn2jxesiw+7BoAujgQD7JhJYtZxmIXLIlb1c 5jzrv7iuzUPyiB8PE7YV62SEbhi6L8z82B/g3oVR7dMpPzD94STKcJykHY9+aKfd8QCd sjMYLMER+v7vETrJz9A9339CXkgMyQ0LJGdkcqzpiHeM8nDn4NkFNEyNCDTU01UJP9qO ObPNOBFoChQUoieTY0VAi0GEgbBDKDW7Lsqs5BhqErAvKiiH9osfUyHl2mhjbzF/1dcp 2mGsvoybfmcML66OjkbTwRsNciDqfMX+68bDZ9yREVM+QASfryAqTAcjDSyLzwcKVDzz 8peQ== 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=eYXNQQatx5CsTvcWnAhx8hozPNi1nTqqLqSrJNAWy6w=; b=I8/bvskWxmYWQ/UuLyzU7NtBELIcOQ2kMpk7nTMH/3DuJwuU9TMM9yarE0dWGTjaw5 oLNv5vwNWCtTkPkVsxc6THcSFUJs2u6YABpLOEsOQlJbbZHEPOaFt1NL6nCXtaiRsoYf L3oozYMWfYgR5ZYTIXSrUkZW5cCIBxz6j9uVIzG1Gw+2AsSFccJ7O+Z29RY8LB77as9x 4z/3Qt+zEl/GxsKgvjrzs74ApSm0gqsQHagt39x1eys+TcW+npGUEkH2UVnHCCQayu8F xwwd0/+XVr1nKqwodfo2eKAl2BYdHs15uH9M1AGm9/SXRnVwJE5GGvP0VJhzj7m5HiQe 7n7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hUE1adA9; 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 w16si918567pfq.70.2019.07.09.19.41.41; Tue, 09 Jul 2019 19:41:58 -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=hUE1adA9; 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 S1726071AbfGJCjx (ORCPT + 99 others); Tue, 9 Jul 2019 22:39:53 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42066 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfGJCjw (ORCPT ); Tue, 9 Jul 2019 22:39:52 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so312089pff.9 for ; Tue, 09 Jul 2019 19:39:52 -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=eYXNQQatx5CsTvcWnAhx8hozPNi1nTqqLqSrJNAWy6w=; b=hUE1adA9ehAy7iETpmQ8DNp3I53GbtbDOpYXs19uYfbIeOI7Jh7sZe4hHXjymkDZQs hZ7qW12GR1twmIEm7NT3T5lAYCepIFPOe6U95PJ+OlUGT2SUkGj3GnbMI7Cbgo5ITSd9 J0D//1L6lMdg0qoHBdNNCnVl7GJ4obVkGLHFIVI2XXykumF67E0odyhvCX+38mqcfvwT mtJkBJQcqD3C+B+RGOfaCary++05pvc1tRN4x21wktTQT+JvgntqaPM+0E/XZC9ib5MR HKo0gX0SrwvcuRgRss3BufISgUN28PS40ArtDEVC4WqOk5GlvdO7pwf/Gv1A5Dsam3yh c7zA== 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=eYXNQQatx5CsTvcWnAhx8hozPNi1nTqqLqSrJNAWy6w=; b=bja8JWXExv8iEs6Dhr5wf2MRfLt44gBSFZV8EztTpakYjs5COJrMzv9APwP3nbG3bR brinFQARTDH5h40bXR/UXihsjTY2QOdsAELLl2rGcB2iwQt/jnR65nMk3HZPtNmh/Hyb VPWrPhwIhvWu5tu1kJ0RUc/yFFVLhCSYygXx+bCTXSIgdcO/hoaalbrk5giIb7EAh91r LQBKGZpq/f99xjurJKAfLU/sGxXHZi9NeeZvOYCE3pIMJnwgAf29h2POsbSSnfQ0pGro lK4LFa+mFbXR6xONxHGLoLryYHfU9EfQYuE+UR8C7uzYmTPq4jURf6eEhNaYPmYCV6Iz p1IQ== X-Gm-Message-State: APjAAAUrfFTOiFw0EY2benbxyylBktOFF3vEKkM3alUPmjUui3hQFQSc Y+NzRKflxhe/qqJn+lMskZA= X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr3831866pjb.115.1562726392001; Tue, 09 Jul 2019 19:39:52 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id x12sm360063pgj.79.2019.07.09.19.39.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 19:39:51 -0700 (PDT) Date: Wed, 10 Jul 2019 08:09:46 +0530 From: Hariprasad Kelam To: Geoff Levand , Jaroslav Kysela , Takashi Iwai , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] sound: ppc: snd_ps3: Remove Unneeded variable: "ret" Message-ID: <20190710023946.GA15604@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/ppc/snd_ps3.c:631:5-8: Unneeded variable: "ret". Return "0" on line 668 We cannot change return type of snd_ps3_pcm_trigger as it is registered with snd_pcm_ops->trigger Signed-off-by: Hariprasad Kelam --- sound/ppc/snd_ps3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c index 71b7fd3..c213eb7 100644 --- a/sound/ppc/snd_ps3.c +++ b/sound/ppc/snd_ps3.c @@ -628,7 +628,6 @@ static int snd_ps3_pcm_trigger(struct snd_pcm_substream *substream, int cmd) { struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); - int ret = 0; switch (cmd) { case SNDRV_PCM_TRIGGER_START: @@ -665,7 +664,7 @@ static int snd_ps3_pcm_trigger(struct snd_pcm_substream *substream, } - return ret; + return 0; }; /* -- 2.7.4