[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1250035061.30166.42.camel@localhost.localdomain>
Date: Tue, 11 Aug 2009 16:57:41 -0700
From: Marcel Holtmann <marcel@...tmann.org>
To: vibi_sreenivasan@....com
Cc: netdev <netdev@...r.kernel.org>,
Johannes Berg <johannes@...solutions.net>,
Thomas Graf <tgraf@...g.ch>,
linux-next <linux-next@...r.kernel.org>
Subject: Re: [PATCH] Fix Warnings from net/netlink/genetlink.c
Hi Vibi,
> 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@....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');
this looks fishy. How does gcc thinks this variable is uninitialized. If
I look at the code in Linus' tree, I don't see it.
Regards
Marcel
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists