Browse Source

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>
James Simmons 8 years ago
parent
commit
c54f79916c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/lustre/lnet/lnet/nidstrings.c

+ 1 - 1
drivers/staging/lustre/lnet/lnet/nidstrings.c

@@ -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;