OSDN Git Service

staging: lustre: plain interger was used as NULL pointer
authorJosep Puigdemont <josep.puigdemont@gmail.com>
Wed, 16 Jul 2014 23:03:39 +0000 (01:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 01:25:47 +0000 (18:25 -0700)
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>
drivers/staging/lustre/lustre/obdecho/lproc_echo.c

index 487c4f3..1d3bf6c 100644 (file)
 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)