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

From: Johannes Berg <[email-masked]>
Date: Tue, 11 Aug 2009 11:11:16 +0200

Hi,

> > > net/netlink/genetlink.c: In function `genl_register_mc_group':
> > > net/netlink/genetlink.c:139: warning: 'err' might be used uninitialized in this function
> > 
> > Well, only if there's no netns which can't happen.

> 	So how to silence that warning?

Well, I suppose your patch is the best way anyhow, using
uninitialized_var() would seem somewhat dangerous for future
modifications of the function.

johannes