Search Linux Wireless

Re: [PATCH] b43: silence a bogus gcc warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 10, 2007 at 05:27:43PM +0100, Michael Buesch wrote:
> On Saturday 10 November 2007 16:25:33 John W. Linville wrote:
> > On Sat, Nov 10, 2007 at 04:14:03PM +0100, Michael Buesch wrote:
> > > From: Frank Lichtenheld <frank@xxxxxxxxxxxxxx>
> > > 
> > > inititalise ret to 0 to avoid the following bogus warning:
> > >   CC [M]  drivers/net/wireless/b43/debugfs.o
> > > drivers/net/wireless/b43/debugfs.c: In function ‘b43_debugfs_read’:
> > > drivers/net/wireless/b43/debugfs.c:355: warning: ‘ret’ may be used uninitialized in this function
> > > 
> > > Signed-off-by: Frank Lichtenheld <frank@xxxxxxxxxxxxxx>
> > > Signed-off-by: Michael Buesch <mb@xxxxxxxxx>
> > 
> > Isn't this what uninitialized_var() is for?

Erh, I didn't actually knew that existed, sorry.
OTOH in this case it is actually longer to write.

> I'd be OK with that, too.

Should I send a changed patch?

Gruesse,
-- 
Frank Lichtenheld <frank@xxxxxxxxxxxxxx>
www: http://www.djpig.de/
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux