summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@gmail.com>2014-07-17 01:03:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-17 18:25:47 -0700
commit871379dc0fd9748892bdf10536f2664751a7819c (patch)
tree23d4699ae581eeb61943421022223f0b9e212fbc
parent8a1182eb34dcb0d5d627e2852f3e76931a653264 (diff)
downloadlinux-stable-871379dc0fd9748892bdf10536f2664751a7819c.tar.gz
linux-stable-871379dc0fd9748892bdf10536f2664751a7819c.tar.bz2
linux-stable-871379dc0fd9748892bdf10536f2664751a7819c.zip
staging: lustre: plain interger was used as NULL pointer
This patch fixes the following warnings found when running sparse: .../lproc_echo.c:43:11: warning: Using plain integer as NULL pointer .../lproc_echo.c:49:11: warning: Using plain integer as NULL pointer Signed-off-by: Josep Puigdemont <josep.puigdemont@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/obdecho/lproc_echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/obdecho/lproc_echo.c b/drivers/staging/lustre/lustre/obdecho/lproc_echo.c
index 487c4f3be20f..1d3bf6c93129 100644
--- a/drivers/staging/lustre/lustre/obdecho/lproc_echo.c
+++ b/drivers/staging/lustre/lustre/obdecho/lproc_echo.c
@@ -40,13 +40,13 @@
LPROC_SEQ_FOPS_RO_TYPE(echo, uuid);
static struct lprocfs_vars lprocfs_echo_obd_vars[] = {
{ "uuid", &echo_uuid_fops, NULL, 0 },
- { 0 }
+ { NULL }
};
LPROC_SEQ_FOPS_RO_TYPE(echo, numrefs);
static struct lprocfs_vars lprocfs_echo_module_vars[] = {
{ "num_refs", &echo_numrefs_fops, NULL, 0 },
- { 0 }
+ { NULL }
};
void lprocfs_echo_init_vars(struct lprocfs_static_vars *lvars)