summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-30 15:56:45 +0200
committerMark Brown <broonie@kernel.org>2020-03-30 15:32:34 +0100
commit76385a665ff5cfdf0a6dda43ec9bce7e7d5387d3 (patch)
treec43807bc7da89a7919535e1f53231767e9d6681e
parentf3ca3f5b0966cfc2737178cca8a7a65b09991898 (diff)
downloadlinux-stable-76385a665ff5cfdf0a6dda43ec9bce7e7d5387d3.tar.gz
linux-stable-76385a665ff5cfdf0a6dda43ec9bce7e7d5387d3.tar.bz2
linux-stable-76385a665ff5cfdf0a6dda43ec9bce7e7d5387d3.zip
ASoC: bcm: Fix pointer cast warning
The NULL check can be done gracefully without cast. It fixes a compile warning like: sound/soc/bcm/bcm63xx-pcm-whistler.c:184:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Fixes: 88eb404ccc3e ("ASoC: brcm: Add DSL/PON SoC audio driver") Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20200330135645.9707-1-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/bcm/bcm63xx-pcm-whistler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/bcm/bcm63xx-pcm-whistler.c b/sound/soc/bcm/bcm63xx-pcm-whistler.c
index e46c390683e7..b7a1efc7406e 100644
--- a/sound/soc/bcm/bcm63xx-pcm-whistler.c
+++ b/sound/soc/bcm/bcm63xx-pcm-whistler.c
@@ -181,7 +181,7 @@ bcm63xx_pcm_pointer(struct snd_soc_component *component,
snd_pcm_uframes_t x;
struct bcm63xx_runtime_data *prtd = substream->runtime->private_data;
- if ((void *)prtd->dma_addr_next == NULL)
+ if (!prtd->dma_addr_next)
prtd->dma_addr_next = substream->runtime->dma_addr;
x = bytes_to_frames(substream->runtime,