Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2981484img; Mon, 25 Mar 2019 00:59:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD+WQd21uYfSiamgOz6vA3+LsB2Xd0VI5zzEwffNyTf9mWCNorIuABgHQLEJpJgP8QhANw X-Received: by 2002:a63:e14e:: with SMTP id h14mr21549259pgk.184.1553500756717; Mon, 25 Mar 2019 00:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553500756; cv=none; d=google.com; s=arc-20160816; b=dHsP7g8ZeKFvt/ZId5yVWxoIYKXTmPFF2H2jV3jcbTLWwl7EB85OTj6kthfkM1w27j 3yYhHnKTvw+f4CiTM15Aqd8BshCQwnjR6s0U/Tplzr9ZxDx3ox1DXq4wPNB9ZbFsYirI 3jJn+doqQ6n2MWXi0l7QHHyiZn/fZg8NVr5Rtwv1V87C1r0wauPUgAPmP57yZDKc9mRj px5ZRI++0n796nUkzAdLJi3lYOE3ve6fRGKOvkoK8W3k8wX22o8tKr0vwwe6D1pySmFI EkRNMiXHb2I12Kra8b2yZM1+t381afWeHOwTd0gu0LPTE62X7/FZTRFCPCjannG4EAlH w/TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=SzqohTI5YV+9GFgdlHpKnR8TpSuUVySHgoul+jCap58=; b=L61ifpiD+B1CFnvFE3Dnu88BXs5y6Tl0mPWUQ8NugfIhyS4PxkRRO0l/RQp2nJNOAL avR7CHJfr3R16XvuyRp0jrQZuFfQuK4rCWwPZqhlCCWvK81xX0w3pcKOsYCVAX8Vzzop 9AGJ5Pq+tPpw6uAoTGpdl/iaqz5Px0XHb2Nx0zUs5dccu7xL/ysC+ZlPRwMjASrmIc5p XapLa9P71BzZdMeL1/Y1YOzHObNyyclpsfG0rqUpSFZrnmCKkWMKOG5zFN4td1OR2BwD 3Cb6iifcpxHEt2d/BUHoqufhQM34u1SSiVyNFGyTO4WxjTV4ux0q/xQAxst72YQBXNM6 xqeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 139si12845221pga.219.2019.03.25.00.59.02; Mon, 25 Mar 2019 00:59:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729934AbfCYH6L (ORCPT + 99 others); Mon, 25 Mar 2019 03:58:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5185 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729720AbfCYH6K (ORCPT ); Mon, 25 Mar 2019 03:58:10 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 8B72E526B28E73E71FD3; Mon, 25 Mar 2019 15:58:08 +0800 (CST) Received: from [127.0.0.1] (10.177.31.96) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.408.0; Mon, 25 Mar 2019 15:58:05 +0800 Subject: Re: [PATCH -next] ASoC: simple-card-utils: remove set but not used variable '' To: Mukesh Ojha , Liam Girdwood , Mark Brown , Jaroslav Kysela , "Takashi Iwai" , Katsuhiro Suzuki , Kuninori Morimoto References: <20190323020838.107533-1-yuehaibing@huawei.com> <6a0c2306-088f-cdbc-0730-60b899611c6f@codeaurora.org> CC: , , From: YueHaibing Message-ID: Date: Mon, 25 Mar 2019 15:58:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <6a0c2306-088f-cdbc-0730-60b899611c6f@codeaurora.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/3/25 15:42, Mukesh Ojha wrote: > > On 3/23/2019 7:38 AM, YueHaibing wrote: >> Fixes gcc '-Wunused-but-set-variable' warning: >> >> sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_parse_clk': >> sound/soc/generic/simple-card-utils.c:164:18: warning: >> parameter 'dai_name' set but not used [-Wunused-but-set-parameter] >> >> It's not used since commit 0580dde59438 ("ASoC: simple-card-utils: add > > > I am not able to find this commit > > 0580dde59438 It's now in linux-next tree. https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0580dde59438686d60762b6da9229ebec693b94f > > >> asoc_simple_debug_info()"), so can be removed. >> >> Signed-off-by: YueHaibing >> --- >> sound/soc/generic/simple-card-utils.c | 4 +--- >> 1 file changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c >> index 4ed68348f939..db1458a19985 100644 >> --- a/sound/soc/generic/simple-card-utils.c >> +++ b/sound/soc/generic/simple-card-utils.c >> @@ -173,10 +173,8 @@ int asoc_simple_parse_clk(struct device *dev, >> * see >> * soc-core.c :: snd_soc_init_multicodec() >> */ >> - if (dlc) { >> + if (dlc) >> dai_of_node = dlc->of_node; >> - dai_name = dlc->dai_name; > > I don't see any function like `asoc_simple_parse_clk` > > but instead this `asoc_simple_card_parse_clk` and there the variable is used. > > Can you double check latest code base ? > > Thanks, > Mukesh > > >> - } >> /* >> * Parse dai->sysclk come from "clocks = <&xxx>" >> >> >> >> >> > > . >