linux_dsm_epyc7002/drivers/net/wireless/rtlwifi
Larry Finger d0df71dcd9 rtlwifi: rtl8192_common: Fix smatch errors and warnings in rtl8192c/dm_common.c
Smatch lists the following:
  CHECK   drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:551 rtl92c_dm_pwdb_monitor() info: ignoring unreachable code.
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:551 rtl92c_dm_pwdb_monitor() info: ignoring unreachable code.
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:870 rtl92c_dm_txpower_tracking_callback_thermalmeter() error: buffer overflow 'txpwr_level' 2 <= 2
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:870 rtl92c_dm_txpower_tracking_callback_thermalmeter() error: buffer overflow 'txpwr_level' 2 <= 2
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:882 rtl92c_dm_txpower_tracking_callback_thermalmeter() error: buffer overflow 'txpwr_level' 2 <= 2
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:883 rtl92c_dm_txpower_tracking_callback_thermalmeter() error: buffer overflow 'txpwr_level' 2 <= 2
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:891 rtl92c_dm_txpower_tracking_callback_thermalmeter() error: buffer overflow 'txpwr_level' 2 <= 2
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:892 rtl92c_dm_txpower_tracking_callback_thermalmeter() error: buffer overflow 'txpwr_level' 2 <= 2

The unreachable code message is fixed by deleting the code that follows a return.

The errors are fixed by increasing the size of txpwr_level.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-10-03 16:24:28 -04:00
..
rtl8188ee Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-09-06 09:36:28 -07:00
rtl8192c rtlwifi: rtl8192_common: Fix smatch errors and warnings in rtl8192c/dm_common.c 2013-10-03 16:24:28 -04:00
rtl8192ce rtlwifi: remove duplicate declarations and macros in headers 2013-09-26 15:15:14 -04:00
rtl8192cu rtlwifi: rtl8192cu: Fix smatch warning in rtl8192cu/trx.c 2013-10-03 16:24:27 -04:00
rtl8192de rtlwifi: rtl8192de: Fix smatch warnings in rtl8192de/hw.c 2013-10-03 16:24:27 -04:00
rtl8192se rtlwifi: remove duplicate declarations and macros in headers 2013-09-26 15:15:14 -04:00
rtl8723ae Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-09-06 09:36:28 -07:00
base.c drivers/net: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-03 22:28:04 -04:00
base.h rtlwifi: remove duplicate declarations and macros in headers 2013-09-26 15:15:14 -04:00
cam.c
cam.h
core.c
core.h
debug.c
debug.h
efuse.c wireless: rtlwifi: Replace variable with a break 2013-09-26 15:15:15 -04:00
efuse.h
Kconfig
Makefile
pci.c wireless: rtlwifi: remove unnecessary pci_set_drvdata() 2013-09-26 15:13:41 -04:00
pci.h
ps.c drivers/net: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-03 22:28:04 -04:00
ps.h
rc.c
rc.h
regd.c
regd.h
stats.c
stats.h
usb.c
usb.h
wifi.h rtlwifi: remove duplicate declarations and macros in headers 2013-09-26 15:15:14 -04:00