]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: bcm: Fix pointer cast warning
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 Mar 2020 13:56:45 +0000 (15:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 30 Mar 2020 14:32:34 +0000 (15:32 +0100)
commit9ba6b1eb1974fe74b81e3cfa94149fb8934e52a5
treec43807bc7da89a7919535e1f53231767e9d6681e
parent08738949be78e6bee917363a7b8d25edfa5f428f
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: 9df6b577d214 ("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>
sound/soc/bcm/bcm63xx-pcm-whistler.c