From patchwork Tue Dec 18 15:26:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10735877 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 8FB2D746 for ; Tue, 18 Dec 2018 15:27:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C8BC2A89C for ; Tue, 18 Dec 2018 15:27:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 708AF2A8D8; Tue, 18 Dec 2018 15:27:13 +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.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A3422A89C for ; Tue, 18 Dec 2018 15:27:11 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D886A2677E4; Tue, 18 Dec 2018 16:27:09 +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 869032677C8; Tue, 18 Dec 2018 16:27:07 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by alsa0.perex.cz (Postfix) with ESMTP id 769AF2677C8 for ; Tue, 18 Dec 2018 16:27:03 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2018 07:27:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,368,1539673200"; d="scan'208";a="128860770" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 18 Dec 2018 07:27:00 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1gZHGu-000IFg-3M; Tue, 18 Dec 2018 23:27:00 +0800 Date: Tue, 18 Dec 2018 23:26:39 +0800 From: kbuild test robot To: James Schulman Message-ID: <20181218152639.GA98084@lkp-hsx03.lkp.intel.com> References: <1545072932-18474-1-git-send-email-james.schulman@cirrus.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1545072932-18474-1-git-send-email-james.schulman@cirrus.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: mark.rutland@arm.com, brian.austin@cirrus.com, alsa-devel@alsa-project.org, ckeepax@opensource.cirrus.com, lgirdwood@gmail.com, paul.handrigan@cirrus.com, robh+dt@kernel.org, kbuild-all@01.org Subject: [alsa-devel] [PATCH] ASoC: cs35l36: fix returnvar.cocci warnings 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot sound/soc/codecs/cs35l36.c:513:5-8: Unneeded variable: "ret". Return "0" on line 554 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: 28343ecbec19 ("ASoC: cs35l36: Add support for Cirrus CS35L36 Amplifier") CC: James Schulman Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/James-Schulman/ASoC-cs35l36-Add-support-for-Cirrus-CS35L36-Amplifier/20181218-063001 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Please take the patch only if it's a positive warning. Thanks! cs35l36.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/soc/codecs/cs35l36.c +++ b/sound/soc/codecs/cs35l36.c @@ -510,7 +510,6 @@ static int cs35l36_main_amp_event(struct struct cs35l36_private *cs35l36 = snd_soc_component_get_drvdata(component); u32 reg; - int ret = 0; switch (event) { case SND_SOC_DAPM_POST_PMU: @@ -551,7 +550,7 @@ static int cs35l36_main_amp_event(struct dev_dbg(component->dev, "Invalid event = 0x%x\n", event); } - return ret; + return 0; } static int cs35l36_boost_event(struct snd_soc_dapm_widget *w,