Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2816537img; Sun, 24 Mar 2019 20:06:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJHwWPABTkdgo7lMM+SpO0PEjm4VdssG1RvcUb6tYytuYRS9tD4y/7AM+qViDYmnL3uO9w X-Received: by 2002:a62:55c7:: with SMTP id j190mr21234927pfb.226.1553483207236; Sun, 24 Mar 2019 20:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553483207; cv=none; d=google.com; s=arc-20160816; b=F/0SG9RltODNkx7uLw4J5IEjx6ffjgVofwos9Fi/k5vdWn20dxeDo4eLI7IVMKv3KZ v1jkHJQ2znmOhODDlGVWgVGCCvtQgxFfNccDBfEwYT32uxBzqE0ERXujU+DctBKLdeo5 cBGhJDQUANr5dRqu0Tqp2EdGTZpPr9SkbJxLETrCkse6Ai4rviwqBEmIk0tGttYfM8xA +NVP7CyAfzvPAmJQSlfviIbkhvB1V0zBkKxqPUTjd1K4NC6Y4Cc7ncBoojWkxOVF/TcT edVIbx0s+uG+3Kn/eY1QN6wJU1/EWfMZNmQxrTan7TXevyP9dgvdOvYGCaJzxycL90bk HLLw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ft7vKjnL3+8IFlAWLRMCqsdNTqScwfjELW7974F4vbU=; b=DItQ0x70AQVkJKZPrTr+pzd+LLwLFazlvVwCy/3nvg0HbfsEdGX7nK8p7i7BnBWktB 9/Mcie8fiMHT32MA+BpPJiMwsSMM0bqhJVpcoy3AsxQZiRE8JrFm2AfD8uA6MkFKIDhV EsMQaB/01GFPcudjaFj/LI6EU0frMpLn6Nv1xQ0jK0tQSZmNrFdGUfguVZWGdt1S8oDS nsRgbYWBqgCUu1vx9srr44UWrj96IZBKxQ9oocYa0+pWycZqqgAMl2hHHtwHsp7d1lvl 7aWGp4nKUIjWgyfahOdKOfOjkWq6fmXhHBVRBxzsPJUMIIWOwVUrnDaMO0ZCNfCHqQlE bPig== 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 h21si12570388pgl.346.2019.03.24.20.06.32; Sun, 24 Mar 2019 20:06:47 -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 S1729456AbfCYDFy (ORCPT + 99 others); Sun, 24 Mar 2019 23:05:54 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5743 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729285AbfCYDFw (ORCPT ); Sun, 24 Mar 2019 23:05:52 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3867DD64E3C96AEFB07A; Mon, 25 Mar 2019 11:05:50 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Mon, 25 Mar 2019 11:05:43 +0800 From: YueHaibing To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Katsuhiro Suzuki" , Kuninori Morimoto CC: YueHaibing , , , Subject: [PATCH v2 -next] ASoC: simple-card-utils: remove set but not used variable 'dai_name' Date: Mon, 25 Mar 2019 03:17:40 +0000 Message-ID: <20190325031740.164364-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190323020838.107533-1-yuehaibing@huawei.com> References: <20190323020838.107533-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 asoc_simple_debug_info()"), so can be removed. Signed-off-by: YueHaibing Acked-by: Kuninori Morimoto --- v2: fix patch title --- 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; - } /* * Parse dai->sysclk come from "clocks = <&xxx>"