mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
rtlwifi: remove redundant initialization to cfg_cmd
cfg_cmd is initialized to zero and this value is never read, instead it is over-written in the start of a do-while loop. Remove the redundant initialization. Cleans up clang warning: drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: warning: Value stored to 'cfg_cmd' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
82e730e521
commit
f80ead1cd5
1 changed files with 1 additions and 1 deletions
|
@ -1746,7 +1746,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
|
||||||
u8 faversion, u8 interface_type,
|
u8 faversion, u8 interface_type,
|
||||||
struct wlan_pwr_cfg pwrcfgcmd[])
|
struct wlan_pwr_cfg pwrcfgcmd[])
|
||||||
{
|
{
|
||||||
struct wlan_pwr_cfg cfg_cmd = {0};
|
struct wlan_pwr_cfg cfg_cmd;
|
||||||
bool polling_bit = false;
|
bool polling_bit = false;
|
||||||
u32 ary_idx = 0;
|
u32 ary_idx = 0;
|
||||||
u8 value = 0;
|
u8 value = 0;
|
||||||
|
|
Loading…
Reference in a new issue