From patchwork Tue Sep 11 18:22:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 146479 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3934587ljw; Tue, 11 Sep 2018 11:22:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdapBVP+P6pzlq/aWnV7Q1sHZMIWtU6NSFsU3wsO9IUYjB2FDYDCxnJdXcRf1IiDx5RMuOKt X-Received: by 2002:adf:f0c8:: with SMTP id x8-v6mr20889690wro.49.1536690133043; Tue, 11 Sep 2018 11:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536690133; cv=none; d=google.com; s=arc-20160816; b=GM5yj9V3ItUsQfGHGf4AMNZ7QclqtPPNmBEdW2pNrD55wAsXFED04jZap5G2I+ged5 pNh+Jl7UDby2+ls6ND1Lqkmdb5sTav6w3cuQv8a9tZDhm7KhTDxZvrJ+unrpp0+Z/8Y7 oYeFbogobOGyXlQMon53jkDnbhd2SIriFhWGEoSgdjrR7oBsaAUM/dJaj0v1IiVxzJq8 VrZcgsJTpHarCKTNxhex3zyFJQ81LlwKgNmuMd7CPFTWurHVXX6yFm0NFkJ/nJhilPYX JJzZCGtfzwgfRnGixdAAFaZim4rNZJdQmsO+7Nxq1Aq2/FZnxWlzc1/lMhXMeRt/68aM CYfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=HTYqHTy1jN04jzeRCiJQ2rh6BC8kgBVIj51NG2MFyts=; b=p/LqxWaTfSJiemfZP+Qy1xCcc1iKI2+KD4F9wrUdw0BVkHTDQTnbirlTX4Z441qvim QdHR8DHofpQJiPuMUK63A6JhnhvJZY1TwisjkM+CHMnFpNLhD2PzEfhq4twy28C3ergd iZ5xq+yz8OlLK3ygtRP6avbIytPfyFaOMLMojkJeaBKXBwcysaBRP20S1rIThaBL1wbH qKOHCFNE/cNp8NHBvV61i1k6thditVRhM8cydYueKo4aphkgom0ZIm56+wkrqdlJj5Si K1tDq5PH8uh0AJZDJLvaem3nG4/J2MfaL0smfqY0Av+n7TTEF3XJUd5ZyQ6v2oLdMvt+ AfUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=W0RJXSu8; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id p189-v6si1234183wmp.73.2018.09.11.11.22.12; Tue, 11 Sep 2018 11:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=W0RJXSu8; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 05C9E267849; Tue, 11 Sep 2018 20:22:12 +0200 (CEST) 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 A40A9267835; Tue, 11 Sep 2018 20:22:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 6F117267846 for ; Tue, 11 Sep 2018 20:22:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=gP22CqBthP8t66PSoGzoA3EVsDvmMDYW0SBfmq/Rlrw=; b=W0RJXSu83Z5c ev73zTFtKgSyhiAFTYaPI1nfM3k8kZO+Eb5w3SZsvwpLmUBn5ZW1HGp0OevA7AM/vS6AT54d/jZ87 bojqiJGyy+SwqvVp+qkIT+cjKNpkfjb0Rp2NBOkJ2B1zxo138PHFxSnUn3xkMfQ1bwkpteBhTRu8y HyMvY=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fznIc-00058V-7N; Tue, 11 Sep 2018 18:22:06 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id EFE581121B1F; Tue, 11 Sep 2018 19:22:05 +0100 (BST) From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87va7c4jcm.wl-kuninori.morimoto.gx@renesas.com> Message-Id: <20180911182205.EFE581121B1F@debutante.sirena.org.uk> Date: Tue, 11 Sep 2018 19:22:05 +0100 (BST) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: soc-core: remove unused num_dai_links" to the asoc tree 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: soc-core: remove unused num_dai_links has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 4f1b327e65a9516a46ea491ce72a5161be176af8 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 11 Sep 2018 06:59:01 +0000 Subject: [PATCH] ASoC: soc-core: remove unused num_dai_links ALSA SoC is counting card->dai_link_list user, but no-one is using it. Let's remove it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- include/sound/soc.h | 1 - sound/soc/soc-core.c | 4 ---- 2 files changed, 5 deletions(-) -- 2.19.0.rc2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/sound/soc.h b/include/sound/soc.h index 821bf99992b8..e17a7ae9a155 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1060,7 +1060,6 @@ struct snd_soc_card { struct snd_soc_dai_link *dai_link; /* predefined links only */ int num_links; /* predefined links only */ struct list_head dai_link_list; /* all links */ - int num_dai_links; struct list_head rtd_list; int num_rtd; diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index dde9b70b58b5..7e18937c2214 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1013,7 +1013,6 @@ static void soc_remove_dai_links(struct snd_soc_card *card) link->name); list_del(&link->list); - card->num_dai_links--; } } @@ -1182,7 +1181,6 @@ int snd_soc_add_dai_link(struct snd_soc_card *card, card->add_dai_link(card, dai_link); list_add_tail(&dai_link->list, &card->dai_link_list); - card->num_dai_links++; return 0; } @@ -1220,7 +1218,6 @@ void snd_soc_remove_dai_link(struct snd_soc_card *card, list_for_each_entry_safe(link, _link, &card->dai_link_list, list) { if (link == dai_link) { list_del(&link->list); - card->num_dai_links--; return; } } @@ -2712,7 +2709,6 @@ int snd_soc_register_card(struct snd_soc_card *card) snd_soc_initialize_card_lists(card); INIT_LIST_HEAD(&card->dai_link_list); - card->num_dai_links = 0; INIT_LIST_HEAD(&card->rtd_list); card->num_rtd = 0;