summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Schroer <sulamiification@gmail.com>2014-07-23 08:16:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-23 18:12:23 -0700
commit22d3970de02cd759df634da9566570c558f1fffa (patch)
tree2dffb725e3200b02da8e4ee75b4f9c052fe77350
parent14fb6ce8de3c2d9c393debe86fb69a521de840e4 (diff)
downloadlinux-22d3970de02cd759df634da9566570c558f1fffa.tar.gz
linux-22d3970de02cd759df634da9566570c558f1fffa.tar.bz2
linux-22d3970de02cd759df634da9566570c558f1fffa.zip
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>
-rw-r--r--drivers/staging/goldfish/goldfish_audio.c2
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;
}