aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorBrian Haley <brian.haley@hp.com>2009-09-04 23:36:52 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-04 23:36:52 -0400
commitb1f57195585e376d1944c32c046359640b06a669 (patch)
tree5e49a5e0077520f92e4e2bfd57caf90e303784ae /net
parentf1751c57f7bb816c9b6b4cb5d79c703aaa7199da (diff)
netlink: silence compiler warning
CC net/netlink/genetlink.o net/netlink/genetlink.c: In function ‘genl_register_mc_group’: net/netlink/genetlink.c:139: warning: ‘err’ may be used uninitialized in this function From following the code 'err' is initialized, but set it to zero to silence the warning. Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netlink/genetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 575c64341508..66f6ba0bab11 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -136,7 +136,7 @@ int genl_register_mc_group(struct genl_family *family,
136{ 136{
137 int id; 137 int id;
138 unsigned long *new_groups; 138 unsigned long *new_groups;
139 int err; 139 int err = 0;
140 140
141 BUG_ON(grp->name[0] == '\0'); 141 BUG_ON(grp->name[0] == '\0');
142 142