mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
f1751c57f7
commit
b1f5719558
@ -136,7 +136,7 @@ int genl_register_mc_group(struct genl_family *family,
|
||||
{
|
||||
int id;
|
||||
unsigned long *new_groups;
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
BUG_ON(grp->name[0] == '\0');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user