提交 e42e748e 编写于 作者: T Takashi Iwai

ALSA: lx6464es: Use NULL for pointers

Spotted by sparse:
  sound/pci/lx6464es/lx6464es.c:415:47: warning: Using plain integer as NULL pointer
  sound/pci/lx6464es/lx6464es.c:417:48: warning: Using plain integer as NULL pointer
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 1983126f
...@@ -412,9 +412,9 @@ static int lx_pcm_hw_free(struct snd_pcm_substream *substream) ...@@ -412,9 +412,9 @@ static int lx_pcm_hw_free(struct snd_pcm_substream *substream)
err = snd_pcm_lib_free_pages(substream); err = snd_pcm_lib_free_pages(substream);
if (is_capture) if (is_capture)
chip->capture_stream.stream = 0; chip->capture_stream.stream = NULL;
else else
chip->playback_stream.stream = 0; chip->playback_stream.stream = NULL;
exit: exit:
mutex_unlock(&chip->setup_mutex); mutex_unlock(&chip->setup_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册