diff options
author | Robin Schroer <sulamiification@gmail.com> | 2014-07-23 10:16:39 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-24 05:12:23 +0400 |
commit | 22d3970de02cd759df634da9566570c558f1fffa (patch) | |
tree | 2dffb725e3200b02da8e4ee75b4f9c052fe77350 /drivers/staging | |
parent | 14fb6ce8de3c2d9c393debe86fb69a521de840e4 (diff) | |
download | linux-22d3970de02cd759df634da9566570c558f1fffa.tar.xz |
staging/goldfish/goldfish_audio: fix a sparse warning
Fix a pointer check to use NULL instead of 0
Warning:
drivers/staging/goldfish/goldfish_audio.c:300:34: warning: Using plain
integer as NULL pointer
Signed-off-by: Robin Schroer <sulamiification@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/goldfish/goldfish_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/goldfish/goldfish_audio.c b/drivers/staging/goldfish/goldfish_audio.c index 9df4ad88772b..c89d0b87a446 100644 --- a/drivers/staging/goldfish/goldfish_audio.c +++ b/drivers/staging/goldfish/goldfish_audio.c @@ -297,7 +297,7 @@ static int goldfish_audio_probe(struct platform_device *pdev) } data->buffer_virt = dmam_alloc_coherent(&pdev->dev, COMBINED_BUFFER_SIZE, &buf_addr, GFP_KERNEL); - if (data->buffer_virt == 0) { + if (data->buffer_virt == NULL) { dev_err(&pdev->dev, "allocate buffer failed\n"); return -ENOMEM; } |