diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-04-14 08:19:55 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-15 16:07:48 +0100 |
commit | 8cbea89e2fba2f92937cd15211490b62f14a46ff (patch) | |
tree | c42a94e8e1b1b44c5d1e5ed7d095348576c87fdc /sound/soc/generic | |
parent | 1ceb019e7830fb831dac10b0fe0688dea24687db (diff) | |
download | linux-8cbea89e2fba2f92937cd15211490b62f14a46ff.tar.bz2 |
ASoC: simple-card: remove unused variable from simple_parse_of()
commit d9ffff696c5b4 ("ASoC: simple-card: Use snd_soc_of_parse_aux_devs()")
switched to use snd_soc_of_parse_aux_devs() on simple_parse_of().
Thus noone is using *top anymore. Let's cleanup unused variable.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87pmyxzs9w.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r-- | sound/soc/generic/simple-card.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index bf5ddf1ea65f..7a87cd56d513 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -441,15 +441,10 @@ static int simple_for_each_link(struct asoc_simple_priv *priv, static int simple_parse_of(struct asoc_simple_priv *priv) { - struct device *dev = simple_priv_to_dev(priv); - struct device_node *top = dev->of_node; struct snd_soc_card *card = simple_priv_to_card(priv); struct link_info li; int ret; - if (!top) - return -EINVAL; - ret = asoc_simple_parse_widgets(card, PREFIX); if (ret < 0) return ret; |