staging: lustre: lnet: replace uninitialized_var
authorJames Simmons <jsimmons@infradead.org>
Thu, 17 Nov 2016 19:35:48 +0000 (14:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 07:47:32 +0000 (08:47 +0100)
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>
drivers/staging/lustre/lnet/lnet/nidstrings.c

index 63379f7241ef229536b505df4890e3e596353314..e1f1ca8f8860185ab3ce5cde0a5e0233ecb870ff 100644 (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;