mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
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 <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200102195952.9465-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
49f261e273
commit
22a0d31a59
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user