From patchwork Tue Mar 13 04:37:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 10277769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E860602BD for ; Tue, 13 Mar 2018 04:38:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53AB0288FD for ; Tue, 13 Mar 2018 04:38:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 485BE2890B; Tue, 13 Mar 2018 04:38:23 +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=-1.9 required=2.0 tests=BAYES_00, 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 6DC68288FD for ; Tue, 13 Mar 2018 04:38:22 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BC8DD267193; Tue, 13 Mar 2018 05:38:20 +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 EC862267187; Tue, 13 Mar 2018 05:38:17 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by alsa0.perex.cz (Postfix) with ESMTP id DB5562670BE for ; Tue, 13 Mar 2018 05:38:15 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2018 21:37:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,463,1515484800"; d="scan'208";a="27546209" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga002.fm.intel.com with ESMTP; 12 Mar 2018 21:37:48 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1evbg2-0006Eb-Aj; Tue, 13 Mar 2018 12:36:42 +0800 Date: Tue, 13 Mar 2018 12:37:39 +0800 From: kbuild test robot To: Akshu Agrawal Message-ID: <20180313043739.GA63106@lkp-nex06> References: <1520845883-24062-2-git-send-email-akshu.agrawal@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1520845883-24062-2-git-send-email-akshu.agrawal@amd.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Cc: alsa-devel@alsa-project.org, tiwai@suse.de, lgirdwood@gmail.com, akshu.agrawal@amd.com, broonie@kernel.org, kbuild-all@01.org Subject: [alsa-devel] [PATCH] ASoC: AMD: 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: Fengguang Wu sound/soc/amd/acp-da7219-max98357a.c:104:5-8: Unneeded variable: "ret". Return "0" on line 108 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: 7d03b3824d27 ("ASoC: AMD: Enable da7219 master clock using common clock framework") CC: Akshu Agrawal Signed-off-by: Fengguang Wu --- Please take the patch only if it's a positive warning. Thanks! acp-da7219-max98357a.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -101,11 +101,9 @@ static int cz_da7219_hw_params(struct sn static int cz_da7219_hw_free(struct snd_pcm_substream *substream) { - int ret = 0; - clk_disable_unprepare(da7219_dai_clk); - return ret; + return 0; } static const unsigned int channels[] = {