提交 503ee628 编写于 作者: J Jes Sorensen 提交者: Greg Kroah-Hartman

staging: rtl8723au: _rtw_free_network23a(): Remove write-only variable 'lifetime'

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f56d9685
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册