summaryrefslogtreecommitdiffstats
path: root/include/linux/kfifo.h
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2010-01-27 17:09:38 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-02-16 15:11:08 -0800
commit5a5e0f4c7038168e38d1db6af09d1ac715ee9888 (patch)
tree6627b1e2ae1b4880d93c1c5f8d6db4f3aca0d38c /include/linux/kfifo.h
parent4c743d0ae60462e91465483dd87f4458d71af550 (diff)
downloadop-kernel-dev-5a5e0f4c7038168e38d1db6af09d1ac715ee9888.zip
op-kernel-dev-5a5e0f4c7038168e38d1db6af09d1ac715ee9888.tar.gz
kfifo: Don't use integer as NULL pointer
This patch fixes following sparse warnings: include/linux/kfifo.h:127:25: warning: Using plain integer as NULL pointer kernel/kfifo.c:83:21: warning: Using plain integer as NULL pointer Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Acked-by: Stefani Seibold <stefani@seibold.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kfifo.h')
-rw-r--r--include/linux/kfifo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h
index 6f6c5f3..bc0fc79 100644
--- a/include/linux/kfifo.h
+++ b/include/linux/kfifo.h
@@ -124,7 +124,7 @@ extern __must_check unsigned int kfifo_out_peek(struct kfifo *fifo,
*/
static inline bool kfifo_initialized(struct kfifo *fifo)
{
- return fifo->buffer != 0;
+ return fifo->buffer != NULL;
}
/**
OpenPOWER on IntegriCloud