Commit 22a0d31a authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

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: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200102195952.9465-2-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 49f261e2
...@@ -63,7 +63,7 @@ int hda_dsp_hdmi_build_controls(struct snd_soc_card *card, ...@@ -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", "%s: mapping HDMI converter %d to PCM %d (%p)\n",
__func__, i, hpcm->device, spcm); __func__, i, hpcm->device, spcm);
} else { } else {
hpcm->pcm = 0; hpcm->pcm = NULL;
hpcm->device = SNDRV_PCM_INVALID_DEVICE; hpcm->device = SNDRV_PCM_INVALID_DEVICE;
dev_warn(card->dev, dev_warn(card->dev,
"%s: no PCM in topology for HDMI converter %d\n\n", "%s: no PCM in topology for HDMI converter %d\n\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment