Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1524764
| From | James Simmons <jsimmons@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 10/19] staging: lustre: lnet: replace uninitialized_var |
| Date | 2016-11-17 20:40 +0100 |
| Message-ID | <sEAHo-4VW-49@gated-at.bofh.it> (permalink) |
| References | <sEAHn-4VW-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/staging/lustre/lnet/lnet/nidstrings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/lustre/lnet/lnet/nidstrings.c b/drivers/staging/lustre/lnet/lnet/nidstrings.c
index 63379f7..e1f1ca8 100644
--- a/drivers/staging/lustre/lnet/lnet/nidstrings.c
+++ b/drivers/staging/lustre/lnet/lnet/nidstrings.c
@@ -1156,7 +1156,7 @@ static void cfs_ip_min_max(struct list_head *nidlist, __u32 *min_nid,
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;
--
1.7.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/19] LNet/libcfs checkpatch and style cleanups James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 10/19] staging: lustre: lnet: replace uninitialized_var James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 01/19] staging: lustre: lnet: don't use bare unsigned James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 06/19] staging: lustre: lnet: fix misspelled word destroy James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 14/19] staging: lustre: libcfs: fix misspelling of descriptor James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 09/19] staging: lustre: lnet: fill in real lnet_md_t James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 13/19] staging: lustre: libcfs: white space cleanup James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 18/19] staging: lustre: lnet: use BIT macro in LNet selftest James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 12/19] staging: lustre: libcfs: remove == 0 testing James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
Re: [PATCH 12/19] staging: lustre: libcfs: remove == 0 testing Dan Carpenter <dan.carpenter@oracle.com> - 2016-11-18 12:20 +0100
Re: [PATCH 12/19] staging: lustre: libcfs: remove == 0 testing James Simmons <jsimmons@infradead.org> - 2016-11-18 17:50 +0100
[PATCH 17/19] staging: lustre: libcfs: remove use of __u* types James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 04/19] staging: lustre: libcfs: remove explicit test of NULL variable James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 19/19] staging: lustre: lnet: cleanup some of the > 80 line issues James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 02/19] staging: lustre: lnet: resolve trailing */ errors James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
csiph-web