Commit c54f7991 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: lnet: replace uninitialized_var

Checkpatch for some reason doesn't like the way
libcfs_str2net_internal. Lets just replace it with
nf being set to NULL instead
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb280ab7
...@@ -1156,7 +1156,7 @@ EXPORT_SYMBOL(libcfs_nid2str_r); ...@@ -1156,7 +1156,7 @@ EXPORT_SYMBOL(libcfs_nid2str_r);
static struct netstrfns * static struct netstrfns *
libcfs_str2net_internal(const char *str, __u32 *net) libcfs_str2net_internal(const char *str, __u32 *net)
{ {
struct netstrfns *uninitialized_var(nf); struct netstrfns *nf = NULL;
int nob; int nob;
unsigned int netnum; unsigned int netnum;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment