From: Brian Haley Date: Sat, 5 Sep 2009 03:36:52 +0000 (-0700) Subject: netlink: silence compiler warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1f57195585e376d1944c32c046359640b06a669;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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, { int id; unsigned long *new_groups; - int err; + int err = 0; BUG_ON(grp->name[0] == '\0');