Search Linux Wireless

Re: [PATCH v2] mac80211: initialize sta pointer to avoid false-positive warning

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

 



On Mon, 2012-06-18 at 15:52 +0300, Luciano Coelho wrote:
> Some compilers (eg. gcc 4.4.1 for ARM) report a false positive warning
> in mlme.c:
> 
> net/mac80211/mlme.c: In function 'ieee80211_prep_connection':
> net/mac80211/mlme.c:3035: warning: 'sta' may be used uninitialized in this function
> 
> This is a false positive because the place where 'sta' is used is
> inside an if with the same condition of where it is set:

I still think it's a workaround, but what the hell ... applied.

johannes

--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux