]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: remove rtd->num
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 24 Oct 2024 01:29:45 +0000 (01:29 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 1 Nov 2024 14:48:14 +0000 (14:48 +0000)
No one is using rtd->num. Let's remove it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87sesmb852.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c

index 51840ceb3cd4209f0ba103e345c2574c2e6b64cd..21a50a8057eb60fa43c1c9441f3661e4426f47b2 100644 (file)
@@ -1195,7 +1195,6 @@ struct snd_soc_pcm_runtime {
        struct dentry *debugfs_dpcm_root;
 #endif
 
-       unsigned int num; /* REMOVE ME */
        unsigned int id; /* 0-based and monotonic increasing */
        struct list_head list; /* rtd list of the soc card */
 
index 3cb7482791669cef95b1132d8e46d110e65a5dd3..233c91e60f0cbb846763ccff58979e09b80b1712 100644 (file)
@@ -559,7 +559,6 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
        rtd->card       = card;
        rtd->dai_link   = dai_link;
        rtd->id         = card->num_rtd++;
-       rtd->num        = rtd->id;                      /* REMOVE ME */
        rtd->pmdown_time = pmdown_time;                 /* default power off timeout */
 
        /* see for_each_card_rtds */