summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2014-11-09 12:38:56 +0100
committerMark Brown <broonie@kernel.org>2014-11-10 19:02:02 +0000
commit0099c762855eeee8d3eacc11fcc1e0819e77b2ed (patch)
tree8a51c1ab4b6030f348961bb2c252ce6b9d4d8ee3 /sound/soc/generic
parent4476159f0b73e58e8c4d750ce03843d70c13994c (diff)
downloadtalos-obmc-linux-0099c762855eeee8d3eacc11fcc1e0819e77b2ed.tar.gz
talos-obmc-linux-0099c762855eeee8d3eacc11fcc1e0819e77b2ed.zip
ASoC: simple-card: Remove useless casts
There is no need to cast the cpu_of_node or codec_of_node of the dai_links when calling of_put_node. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r--sound/soc/generic/simple-card.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index cd49d5010e14..3e3fec4e5c4e 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -457,16 +457,13 @@ static int asoc_simple_card_unref(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct snd_soc_dai_link *dai_link;
- struct device_node *np;
int num_links;
for (num_links = 0, dai_link = card->dai_link;
num_links < card->num_links;
num_links++, dai_link++) {
- np = (struct device_node *) dai_link->cpu_of_node;
- of_node_put(np);
- np = (struct device_node *) dai_link->codec_of_node;
- of_node_put(np);
+ of_node_put(dai_link->cpu_of_node);
+ of_node_put(dai_link->codec_of_node);
}
return 0;
}
OpenPOWER on IntegriCloud