mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 11:23:09 -04:00
staging: rtl8723au: _rtw_free_network23a(): Remove write-only variable 'lifetime'
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f56d96857b
commit
503ee62874
@@ -149,18 +149,12 @@ struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv)
|
||||
static void _rtw_free_network23a(struct mlme_priv *pmlmepriv,
|
||||
struct wlan_network *pnetwork, u8 isfreeall)
|
||||
{
|
||||
u32 lifetime = SCANQUEUE_LIFETIME;
|
||||
|
||||
if (!pnetwork)
|
||||
return;
|
||||
|
||||
if (pnetwork->fixed == true)
|
||||
return;
|
||||
|
||||
if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) ||
|
||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true))
|
||||
lifetime = 1;
|
||||
|
||||
list_del_init(&pnetwork->list);
|
||||
|
||||
kfree(pnetwork);
|
||||
|
||||
Reference in New Issue
Block a user