staging: lustre: Fixed warnings about using 0 as NULL ptr
authorGreg DeAngelis <gdeangel@gmail.com>
Sat, 24 May 2014 03:09:11 +0000 (23:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 May 2014 17:59:52 +0000 (10:59 -0700)
Fixed a bunch of warnings pointed out by sparse about using 0 to
represent a NULL pointer.

Signed-off-by: Greg DeAngelis <gdeangel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mgc/lproc_mgc.c

index 1506af13f1bf747373268f06f14e87e86c3d1816..6c877c5a6a716ee83dde0a8c1ebebc67216fee0e 100644 (file)
@@ -56,21 +56,21 @@ static int mgc_ir_state_seq_show(struct seq_file *m, void *v)
 LPROC_SEQ_FOPS_RO(mgc_ir_state);
 
 static struct lprocfs_vars lprocfs_mgc_obd_vars[] = {
-       { "uuid",            &mgc_uuid_fops,      0, 0 },
-       { "ping",            &mgc_ping_fops,      0, 0222 },
-       { "connect_flags",   &mgc_connect_flags_fops, 0, 0 },
-       { "mgs_server_uuid", &mgc_server_uuid_fops,   0, 0 },
-       { "mgs_conn_uuid",   &mgc_conn_uuid_fops,     0, 0 },
-       { "import",          &mgc_import_fops,  0, 0 },
-       { "state",           &mgc_state_fops,    0, 0 },
-       { "ir_state",        &mgc_ir_state_fops,  0, 0 },
-       { 0 }
+       { "uuid",            &mgc_uuid_fops,      NULL, 0 },
+       { "ping",            &mgc_ping_fops,      NULL, 0222 },
+       { "connect_flags",   &mgc_connect_flags_fops, NULL, 0 },
+       { "mgs_server_uuid", &mgc_server_uuid_fops,   NULL, 0 },
+       { "mgs_conn_uuid",   &mgc_conn_uuid_fops,     NULL, 0 },
+       { "import",          &mgc_import_fops,  NULL, 0 },
+       { "state",           &mgc_state_fops,    NULL, 0 },
+       { "ir_state",        &mgc_ir_state_fops,  NULL, 0 },
+       { NULL }
 };
 
 LPROC_SEQ_FOPS_RO_TYPE(mgc, numrefs);
 static struct lprocfs_vars lprocfs_mgc_module_vars[] = {
-       { "num_refs",   &mgc_numrefs_fops,       0, 0 },
-       { 0 }
+       { "num_refs",   &mgc_numrefs_fops,       NULL, 0 },
+       { NULL }
 };
 
 void lprocfs_mgc_init_vars(struct lprocfs_static_vars *lvars)