linux_dsm_epyc7002/drivers/net/wireless/realtek/rtlwifi
Matthias Kaehlcke fb239c1209 rtlwifi: rtl8192cu: Remove variable self-assignment in rf.c
In _rtl92c_get_txpower_writeval_by_regulatory() the variable writeVal
is assigned to itself in an if ... else statement, apparently only to
document that the branch condition is handled and that a previously read
value should be returned unmodified. The self-assignment causes clang to
raise the following warning:

drivers/net/wireless/realtek/rtlwifi/rtl8192cu/rf.c:304:13:
  error: explicitly assigning value of variable of type 'u32'
    (aka 'unsigned int') to itself [-Werror,-Wself-assign]
  writeVal = writeVal;

Delete the branch with the self-assignment.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-02-27 18:17:30 +02:00
..
btcoexist rtlwifi: btcoex: Add 8822be btcoex supported files for wifi only 2018-02-27 18:15:29 +02:00
rtl8188ee
rtl8192c
rtl8192ce
rtl8192cu rtlwifi: rtl8192cu: Remove variable self-assignment in rf.c 2018-02-27 18:17:30 +02:00
rtl8192de
rtl8192ee
rtl8192se
rtl8723ae
rtl8723be
rtl8723com
rtl8821ae rtlwifi: Add Support VHT to spec_ver 2018-02-27 18:15:16 +02:00
base.c rtlwifi: Add rate section and its related definition and comment 2018-02-27 18:15:20 +02:00
base.h rtlwifi: Add spec_ver to check whether use new rate-id or not 2018-01-24 17:40:24 +02:00
cam.c
cam.h
core.c rtlwifi: btcoex: Add wifi_only series ops to control solo card 2018-01-24 17:40:04 +02:00
core.h
debug.c
debug.h
efuse.c rtlwifi: add efuse ops for other components 2018-02-27 18:15:25 +02:00
efuse.h rtlwifi: add efuse ops for other components 2018-02-27 18:15:25 +02:00
Kconfig
Makefile
pci.c rtlwifi: add efuse ops for other components 2018-02-27 18:15:25 +02:00
pci.h
ps.c rtlwifi: fix scan channel 1 fail after IPS 2018-01-17 17:09:10 +02:00
ps.h
pwrseqcmd.h
rc.c rtlwifi: Fix VHT NSS in RC 2018-02-27 18:15:23 +02:00
rc.h
regd.c
regd.h
stats.c
stats.h
usb.c
usb.h
wifi.h rtlwifi: btcoex: add routine to set default port id 2018-02-27 18:15:26 +02:00