Skip to content

Commit 76385a6

Browse files
tiwaibroonie
authored andcommitted
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: 88eb404 ("ASoC: brcm: Add DSL/PON SoC audio driver") Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f3ca3f5 commit 76385a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/bcm/bcm63xx-pcm-whistler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bcm63xx_pcm_pointer(struct snd_soc_component *component,
181181
snd_pcm_uframes_t x;
182182
struct bcm63xx_runtime_data *prtd = substream->runtime->private_data;
183183

184-
if ((void *)prtd->dma_addr_next == NULL)
184+
if (!prtd->dma_addr_next)
185185
prtd->dma_addr_next = substream->runtime->dma_addr;
186186

187187
x = bytes_to_frames(substream->runtime,

0 commit comments

Comments
 (0)