1
0
Fork 0

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: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
James Simmons 2016-11-17 14:35:48 -05:00 committed by Greg Kroah-Hartman
parent eb280ab789
commit c54f79916c
1 changed files with 1 additions and 1 deletions

View File

@ -1156,7 +1156,7 @@ EXPORT_SYMBOL(libcfs_nid2str_r);
static struct netstrfns *
libcfs_str2net_internal(const char *str, __u32 *net)
{
struct netstrfns *uninitialized_var(nf);
struct netstrfns *nf = NULL;
int nob;
unsigned int netnum;
int i;