From: Pierre-Louis Bossart Date: Thu, 2 Jan 2020 19:59:51 +0000 (-0600) Subject: ASoC: Intel: boards: hda_dsp_common: use NULL pointer assignment, not 0 X-Git-Tag: v5.10.7~1331^2~265^2~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22a0d31a595c7cd0d37b97e1bc09c79ae1408311;p=platform%2Fkernel%2Flinux-rpi.git ASoC: Intel: boards: hda_dsp_common: use NULL pointer assignment, not 0 Fix Sparse warning: hda_dsp_common.c:66:37: warning: Using plain integer as NULL pointer Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200102195952.9465-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/hda_dsp_common.c b/sound/soc/intel/boards/hda_dsp_common.c index ed36b68..9179f07f 100644 --- a/sound/soc/intel/boards/hda_dsp_common.c +++ b/sound/soc/intel/boards/hda_dsp_common.c @@ -63,7 +63,7 @@ int hda_dsp_hdmi_build_controls(struct snd_soc_card *card, "%s: mapping HDMI converter %d to PCM %d (%p)\n", __func__, i, hpcm->device, spcm); } else { - hpcm->pcm = 0; + hpcm->pcm = NULL; hpcm->device = SNDRV_PCM_INVALID_DEVICE; dev_warn(card->dev, "%s: no PCM in topology for HDMI converter %d\n\n",