Commit d95e933730b3eb7b06bd778dc1d8f0ab3702b607
1 parent
7435d4eec7
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
ASoC: ab8500: Remove pointless cast
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>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
sound/soc/codecs/ab8500-codec.c
... | ... | @@ -2404,11 +2404,11 @@ |
2404 | 2404 | |
2405 | 2405 | dev_dbg(dev, "%s: Enter.\n", __func__); |
2406 | 2406 | |
2407 | - /* Setup AB8500 according to board-settings */ | |
2408 | - pdata = (struct ab8500_platform_data *)dev_get_platdata(dev->parent); | |
2409 | - | |
2410 | 2407 | /* Inform SoC Core that we have our own I/O arrangements. */ |
2411 | 2408 | codec->control_data = (void *)true; |
2409 | + | |
2410 | + /* Setup AB8500 according to board-settings */ | |
2411 | + pdata = dev_get_platdata(dev->parent); | |
2412 | 2412 | |
2413 | 2413 | status = ab8500_audio_setup_mics(codec, &pdata->codec->amics); |
2414 | 2414 | if (status < 0) { |