ASoC: ab8500: Remove pointless cast
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 26 Jul 2012 14:25:48 +0000 (15:25 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Aug 2012 22:03:57 +0000 (23:03 +0100)
There's never any need to cast away from void.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
sound/soc/codecs/ab8500-codec.c

index 23b40186f9b8f48df8be77a29269eddbad88f792..b7836503dc69507473c45cc3c68ac55ec9b0f758 100644 (file)
@@ -2404,12 +2404,12 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
 
        dev_dbg(dev, "%s: Enter.\n", __func__);
 
-       /* Setup AB8500 according to board-settings */
-       pdata = (struct ab8500_platform_data *)dev_get_platdata(dev->parent);
-
        /* Inform SoC Core that we have our own I/O arrangements. */
        codec->control_data = (void *)true;
 
+       /* Setup AB8500 according to board-settings */
+       pdata = dev_get_platdata(dev->parent);
+
        status = ab8500_audio_setup_mics(codec, &pdata->codec->amics);
        if (status < 0) {
                pr_err("%s: Failed to setup mics (%d)!\n", __func__, status);