Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3460808pxb; Wed, 14 Apr 2021 06:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy/xLltbOVP6xPOe5awI71AjkTvdjjpTIlfSCmv2+yZbleKKrNtbtuq69Y1CIGFYc9+Pyr X-Received: by 2002:a17:906:6882:: with SMTP id n2mr37345732ejr.50.1618405829805; Wed, 14 Apr 2021 06:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618405829; cv=none; d=google.com; s=arc-20160816; b=o64L1u9jpJfRwOWFmQN8BW1J3wc9Z2VEl159m0/Vnv2u+TeHCfzBQLQv5Bi3tvCEOZ tgztIjEYY1MrDbxANeTJB8jeY24+w64tP9iga4jv+Pe+n1pTSGgLVEQxZfLGkl4EaAT3 2DZ6pFapCsCmRCLVel/RoNdSgCy2j6byr1eZEx903rY/c5AeNmQEFTDDcOXDhPvv92uO FPsjFEmXenl0SZZSeGeuuEAh4pRWS6rwDP7QG5g000SLUKsRpBydyYaK2KR9/kHDk8Z5 yZPUnq48BQfVCr0sUGh77s3V9MUxbD3vfkyzVJoNvmncOBAmBvddaCuhK6b4r8FgtnWs WM0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6PwxCBabEhWe/N+HgPhdihWGizsVEJR1nnRsvVPU7Zs=; b=Fj43bTu3m6UZmCdloQIIgOmBbGJkkedHNPrDnW7ZfFfjyvYwAPK+bv1nM/2pWbd68Q iGGKjrGgE1g5oosAW9fh4PjvTMzkCvORxsgXCdvFy6RySjzyK4lSmGAlVFqxamdhxStf 2+bg2+YRVS6GgzcG8fj+z+iLAqBzp8FTNY9bQTBVk+zZT/XjkbWDpMD5r+S6D7y7MP9v UfnKFusvYqJYhmmOyeGxb7cA4ymB404XiOGkjwhvfuwHovFubWcHaSGA1CsWM2Uzlt9t 4Gfk/PP0XOg7Pk7FfpfrsaeBFlMUhcP8IvnJ8jZDIg9k+uVY2oh9jp6BtpXEE7a5LDGN 7Sxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si12999705edw.465.2021.04.14.06.10.06; Wed, 14 Apr 2021 06:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232976AbhDNDZO (ORCPT + 99 others); Tue, 13 Apr 2021 23:25:14 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:41333 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbhDNDZN (ORCPT ); Tue, 13 Apr 2021 23:25:13 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UVVUQd-_1618370679; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVVUQd-_1618370679) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 11:24:50 +0800 From: Jiapeng Chong To: paul@crapouillou.net Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, linux-mips@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ASoC: codec: remove unused variable Date: Wed, 14 Apr 2021 11:24:37 +0800 Message-Id: <1618370677-4559-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: sound/soc/codecs/jz4760.c:201:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/soc/codecs/jz4760.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/jz4760.c b/sound/soc/codecs/jz4760.c index e8f28cc..ad5e859 100644 --- a/sound/soc/codecs/jz4760.c +++ b/sound/soc/codecs/jz4760.c @@ -198,15 +198,13 @@ static int jz4760_codec_startup(struct snd_pcm_substream *substream, { struct snd_soc_component *codec = dai->component; struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(codec); - int ret; - /* * SYSCLK output from the codec to the AIC is required to keep the * DMA transfer going during playback when all audible outputs have * been disabled. */ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) - ret = snd_soc_dapm_force_enable_pin(dapm, "SYSCLK"); + snd_soc_dapm_force_enable_pin(dapm, "SYSCLK"); return 0; } -- 1.8.3.1