Skip to content

Commit

Permalink
staging: lustre: plain interger was used as NULL pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josep Puigdemont authored and Greg Kroah-Hartman committed Jul 18, 2014
1 parent 8a1182e commit 871379d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/obdecho/lproc_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 871379d

Please sign in to comment.