linux/drivers/staging/rtl8192e
Arnd Bergmann 5d43dfdba0 staging: rtl8192x: fix bogus maybe-uninitialized warning
The rtllib_rx_extract_addr() is supposed to set up the mac addresses
for four possible cases, based on two bits of input data. For
some reason, gcc decides that it's possible that none of the these
four cases apply and the addresses remain uninitialized:

drivers/staging/rtl8192e/rtllib_rx.c: In function ‘rtllib_rx_InfraAdhoc’:
include/linux/etherdevice.h:316:61: error: ‘*((void *)&dst+4)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/staging/rtl8192e/rtllib_rx.c:1318:5: note: ‘*((void *)&dst+4)’ was declared here
ded from /git/arm-soc/drivers/staging/rtl8192e/rtllib_rx.c:40:0:
include/linux/etherdevice.h:316:36: error: ‘dst’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/staging/rtl8192e/rtllib_rx.c:1318:5: note: ‘dst’ was declared here

This warning is clearly nonsense, but changing the last case into
'default' makes it obvious to the compiler too, which avoids the
warning and probably leads to better object code too.

As the same warning appears in other files that have the exact
same code, I'm fixing it in both rtl8192e and rtl8192u, even
though I did not observe it for the latter.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-25 09:40:44 +02:00
..
rtl8192e staging: rtl8192e: Compress return logic into one line. 2016-10-17 10:27:55 +02:00
dot11d.c staging: rtl8192e: Remove unnecessary blank lines 2016-09-20 13:36:57 +02:00
dot11d.h staging: rtl8192e: Insert blank line after function declaration 2016-09-20 13:36:57 +02:00
Kconfig
license
Makefile
rtl819x_BA.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_BAProc.c staging: rtl8192e: Drop useless initialisation 2016-02-20 15:12:06 -08:00
rtl819x_HT.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_HTProc.c staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_Qos.h staging/rtl8192e: avoid comparing unsigned type >= 0 2016-08-21 18:21:28 +02:00
rtl819x_TS.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtl819x_TSProc.c staging/rtl8192e: avoid comparing unsigned type >= 0 2016-08-21 18:21:28 +02:00
rtllib_crypt_ccmp.c staging: rtl8192e: Prefer using macro DIV_ROUND_UP 2016-03-11 22:09:09 -08:00
rtllib_crypt_tkip.c Staging driver patches for 4.6-rc1 2016-03-17 22:13:41 -07:00
rtllib_crypt_wep.c staging: rtl8192e: Replace uses of obsolete blkcipher and hash 2016-01-27 20:35:46 +08:00
rtllib_debug.h staging: rtl8192e: Fix FSF_MAILING_ADDRESS warnings 2015-09-29 04:26:06 +02:00
rtllib_module.c Staging: rtl8192e: Use !x instead of x == NULL 2016-09-18 12:37:43 +02:00
rtllib_rx.c staging: rtl8192x: fix bogus maybe-uninitialized warning 2016-10-25 09:40:44 +02:00
rtllib_softmac_wx.c rtl8192e: rtllib_device: Replace semaphore wx_sem with mutex 2016-08-21 18:22:31 +02:00
rtllib_softmac.c Staging: rtl8192e: mark symbols static where possible 2016-09-12 12:29:27 +02:00
rtllib_tx.c staging: rtl8192e: fixed use a blank line after function/struct/union/enum declarations 2016-09-28 11:39:10 +02:00
rtllib_wx.c rtl8192e: rtllib_device: Replace semaphore wx_sem with mutex 2016-08-21 18:22:31 +02:00
rtllib.h staging: rtl8188eu: core: rtw_xmit: Use macros instead of constants 2016-10-02 17:26:57 +02:00
TODO