]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: lx6464es: Use NULL for pointers
authorTakashi Iwai <tiwai@suse.de>
Tue, 26 May 2015 10:56:21 +0000 (12:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 May 2015 11:00:00 +0000 (13:00 +0200)
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: Takashi Iwai <tiwai@suse.de>
sound/pci/lx6464es/lx6464es.c

index 611b9a88784e5f981d55340e7a31fbaded065942..cba89beb2b38fac6e376a2231c1e4f68caa644e5 100644 (file)
@@ -412,9 +412,9 @@ static int lx_pcm_hw_free(struct snd_pcm_substream *substream)
        err = snd_pcm_lib_free_pages(substream);
 
        if (is_capture)
-               chip->capture_stream.stream = 0;
+               chip->capture_stream.stream = NULL;
        else
-               chip->playback_stream.stream = 0;
+               chip->playback_stream.stream = NULL;
 
 exit:
        mutex_unlock(&chip->setup_mutex);