[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1249981876.3015.0.camel@johannes.local>
Date: Tue, 11 Aug 2009 11:11:16 +0200
From: Johannes Berg <johannes@...solutions.net>
To: vibi_sreenivasan@....com
Cc: linux-next@...r.kernel.org, Thomas Graf <tgraf@...g.ch>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] Fix Warnings from net/netlink/genetlink.c
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
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists