[PATCH] Fix Warnings from net/netlink/genetlink.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: vibi sreenivasan
Date: Tuesday, August 11, 2009 - 3:07 am

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




--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix Warnings from net/netlink/genetlink.c, vibi sreenivasan, (Tue Aug 11, 3:07 am)
Re: [PATCH] Fix Warnings from net/netlink/genetlink.c, Marcel Holtmann, (Tue Aug 11, 4:57 pm)
Re: [PATCH] Fix Warnings from net/netlink/genetlink.c, Stephen Hemminger, (Tue Aug 11, 8:24 pm)
Re: [PATCH] Fix Warnings from net/netlink/genetlink.c, Stephen Rothwell, (Tue Aug 11, 8:50 pm)
Re: [PATCH] Fix Warnings from net/netlink/genetlink.c, Marcel Holtmann, (Tue Aug 11, 9:03 pm)