diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2014-11-09 06:38:56 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-10 14:02:02 -0500 |
commit | 0099c762855eeee8d3eacc11fcc1e0819e77b2ed (patch) | |
tree | 8a51c1ab4b6030f348961bb2c252ce6b9d4d8ee3 /sound/soc/ux500 | |
parent | 4476159f0b73e58e8c4d750ce03843d70c13994c (diff) |
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/ux500')
-rw-r--r-- | sound/soc/ux500/mop500.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index b3b66aa98dce..ea9ba2844510 100644 --- a/sound/soc/ux500/mop500.c +++ b/sound/soc/ux500/mop500.c | |||
@@ -64,11 +64,9 @@ static void mop500_of_node_put(void) | |||
64 | 64 | ||
65 | for (i = 0; i < 2; i++) { | 65 | for (i = 0; i < 2; i++) { |
66 | if (mop500_dai_links[i].cpu_of_node) | 66 | if (mop500_dai_links[i].cpu_of_node) |
67 | of_node_put((struct device_node *) | 67 | of_node_put(mop500_dai_links[i].cpu_of_node); |
68 | mop500_dai_links[i].cpu_of_node); | ||
69 | if (mop500_dai_links[i].codec_of_node) | 68 | if (mop500_dai_links[i].codec_of_node) |
70 | of_node_put((struct device_node *) | 69 | of_node_put(mop500_dai_links[i].codec_of_node); |
71 | mop500_dai_links[i].codec_of_node); | ||
72 | } | 70 | } |
73 | } | 71 | } |
74 | 72 | ||