summaryrefslogtreecommitdiff
path: root/drivers/staging/line6/playback.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2010-12-07 22:38:02 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-08 22:31:01 (GMT)
commit597a1e7cccc9a5a0c47629267ac4b23bf8654578 (patch)
treeea042aed7791d384b8d4e2474e50aa9578f6b6b8 /drivers/staging/line6/playback.c
parentfb657461abf6842b8f7603370ff349f42814ac5b (diff)
downloadlinux-fsl-qoriq-597a1e7cccc9a5a0c47629267ac4b23bf8654578.tar.xz
staging/line6: Fix sparse warning 'Using plain integer as NULL pointer'
This patch fixes the warning generated by sparse: "Using plain integer as NULL pointer" by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6/playback.c')
-rw-r--r--drivers/staging/line6/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/line6/playback.c b/drivers/staging/line6/playback.c
index 29940fd..10c5438 100644
--- a/drivers/staging/line6/playback.c
+++ b/drivers/staging/line6/playback.c
@@ -246,7 +246,7 @@ static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm)
change_volume(urb_out, line6pcm->volume_playback, bytes_per_frame);
- if (line6pcm->prev_fbuf != 0) {
+ if (line6pcm->prev_fbuf != NULL) {
#ifdef CONFIG_LINE6_USB_IMPULSE_RESPONSE
if (line6pcm->flags & MASK_PCM_IMPULSE) {
create_impulse_test_signal(line6pcm, urb_out,