linux-uconsole/drivers/net/wireless
Matthias Kaehlcke ff84f4d639 rtlwifi: rtl8192cu: Remove variable self-assignment in rf.c
commit fb239c1209 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-06 16:46:21 +02:00
..
ath ath10k: Fix kernel panic while using worker (ath10k_sta_rc_update_wk) 2018-05-30 07:49:10 +02:00
b43 driver core update for 4.4-rc1 2015-11-04 21:50:37 -08:00
b43legacy
brcm80211 brcmfmac: fix P2P_DEVICE ethernet address generation 2018-03-28 18:40:15 +02:00
cw1200 wireless: cw1200: use __maybe_unused to hide pm functions_ 2018-02-25 11:03:50 +01:00
hostap hostap: avoid uninitialized variable use in hfa384x_get_rid 2017-04-30 05:49:28 +02:00
ipw2x00 drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
iwlegacy mac80211: pass block ack session timeout to to driver 2017-05-20 14:27:03 +02:00
iwlwifi iwlwifi: mvm: use IWL_HCMD_NOCOPY for MCAST_FILTER_CMD 2017-10-18 09:20:41 +02:00
libertas spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
libertas_tf
mediatek mt7601u: check return value of alloc_skb 2018-03-24 10:58:44 +01:00
mwifiex mwifiex: correct channel stat buffer overflows 2017-09-13 14:09:45 -07:00
orinoco orinoco_usb: return error in ezusb_probe when alloc_orinocodev fails 2015-10-28 20:55:47 +02:00
p54 p54: memset(0) whole array 2017-09-02 07:06:51 +02:00
prism54
realtek rtlwifi: rtl8192cu: Remove variable self-assignment in rf.c 2018-06-06 16:46:21 +02:00
rsi mac80211: pass block ack session timeout to to driver 2017-05-20 14:27:03 +02:00
rt2x00 mac80211: pass block ack session timeout to to driver 2017-05-20 14:27:03 +02:00
ti wl1251: check return from call to wl1251_acx_arp_ip_filter 2018-04-13 19:50:14 +02:00
zd1211rw
adm8211.c
adm8211.h
airo.c airo: fix scan after SIOCSIWAP (airo_set_wap) 2015-10-28 20:54:39 +02:00
airo.h
airo_cs.c
at76c50x-usb.c
at76c50x-usb.h
atmel.c
atmel.h
atmel_cs.c
atmel_pci.c
Kconfig New driver: rtl8xxxu (mac80211) 2015-10-21 10:53:29 +03:00
mac80211_hwsim.c mac80211_hwsim: fix possible memory leak in hwsim_new_radio_nl() 2018-05-30 07:48:54 +02:00
mac80211_hwsim.h
Makefile rtlwifi: rtl818x: Move drivers into new realtek directory 2015-10-14 13:33:10 +03:00
mwl8k.c mac80211: pass block ack session timeout to to driver 2017-05-20 14:27:03 +02:00
ray_cs.c ray_cs: Avoid reading past end of buffer 2018-04-13 19:50:09 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c rndis_wlan: add return value validation 2018-03-24 10:58:44 +01:00
wl3501.h
wl3501_cs.c
zd1201.c
zd1201.h