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

Johannes Berg
2009-08-11T13:26:27Z

[-- Attachment #1: Type: text/plain, Size: 441 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]