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 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?

-- 
John W. Linville
linville@xxxxxxxxxxxxx
-
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