diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2010-12-07 23:38:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-08 14:31:01 -0800 |
commit | 597a1e7cccc9a5a0c47629267ac4b23bf8654578 (patch) | |
tree | ea042aed7791d384b8d4e2474e50aa9578f6b6b8 /drivers/staging/line6/capture.c | |
parent | fb657461abf6842b8f7603370ff349f42814ac5b (diff) |
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/capture.c')
-rw-r--r-- | drivers/staging/line6/capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/line6/capture.c b/drivers/staging/line6/capture.c index 1e3bb140633..9647154a492 100644 --- a/drivers/staging/line6/capture.c +++ b/drivers/staging/line6/capture.c @@ -147,7 +147,7 @@ void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) const int bytes_per_frame = line6pcm->properties->bytes_per_frame; int frames = fsize / bytes_per_frame; - if (runtime == 0) + if (runtime == NULL) return; if (line6pcm->pos_in_done + frames > runtime->buffer_size) { |