netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix Warnings from net/netlink/genetlink.c
@ 2009-08-11 10:07 vibi sreenivasan
  2009-08-11 23:57 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: vibi sreenivasan @ 2009-08-11 10:07 UTC (permalink / raw)
  To: netdev; +Cc: Johannes Berg, Thomas Graf, linux-next

net/netlink/genetlink.c: In function `genl_register_mc_group':
net/netlink/genetlink.c:139: warning: 'err' might be used uninitialized in this function

Signed-off-by: vibi sreenivasan <vibi_sreenivasan@cms.com>
---
 net/netlink/genetlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 575c643..66f6ba0 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');
 
-- 
1.6.3.3





^ permalink raw reply related	[flat|nested] 8+ messages in thread
[parent not found: <1249975630.2400.7.camel@HunTEr>]

end of thread, other threads:[~2009-08-12  4:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 10:07 [PATCH] Fix Warnings from net/netlink/genetlink.c vibi sreenivasan
2009-08-11 23:57 ` Marcel Holtmann
2009-08-12  3:24   ` Stephen Hemminger
2009-08-12  3:50     ` Stephen Rothwell
2009-08-12  4:03       ` Marcel Holtmann
     [not found] <1249975630.2400.7.camel@HunTEr>
2009-08-11  7:36 ` Johannes Berg
2009-08-11  9:15   ` vibi sreenivasan
2009-08-11  9:11     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).