Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 871379dc authored by Josep Puigdemont's avatar Josep Puigdemont Committed by Greg Kroah-Hartman
Browse files

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: default avatarJosep Puigdemont <josep.puigdemont@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a1182eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -40,13 +40,13 @@
LPROC_SEQ_FOPS_RO_TYPE(echo, uuid);
LPROC_SEQ_FOPS_RO_TYPE(echo, uuid);
static struct lprocfs_vars lprocfs_echo_obd_vars[] = {
static struct lprocfs_vars lprocfs_echo_obd_vars[] = {
	{ "uuid",	 &echo_uuid_fops,	NULL, 0 },
	{ "uuid",	 &echo_uuid_fops,	NULL, 0 },
	{ 0 }
	{ NULL }
};
};


LPROC_SEQ_FOPS_RO_TYPE(echo, numrefs);
LPROC_SEQ_FOPS_RO_TYPE(echo, numrefs);
static struct lprocfs_vars lprocfs_echo_module_vars[] = {
static struct lprocfs_vars lprocfs_echo_module_vars[] = {
	{ "num_refs",     &echo_numrefs_fops,     NULL, 0 },
	{ "num_refs",     &echo_numrefs_fops,     NULL, 0 },
	{ 0 }
	{ NULL }
};
};


void lprocfs_echo_init_vars(struct lprocfs_static_vars *lvars)
void lprocfs_echo_init_vars(struct lprocfs_static_vars *lvars)