Commit 661f7069 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: struct rtw_wdev_priv: Remove some never 'true' variables

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 015e425e
...@@ -28,9 +28,6 @@ struct rtw_wdev_priv { ...@@ -28,9 +28,6 @@ struct rtw_wdev_priv {
u8 p2p_enabled; u8 p2p_enabled;
u8 provdisc_req_issued;
bool block;
bool power_mgmt; bool power_mgmt;
}; };
......
...@@ -2012,12 +2012,6 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev, ...@@ -2012,12 +2012,6 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
DBG_8723A("privacy =%d, key =%p, key_len =%d, key_idx =%d\n", DBG_8723A("privacy =%d, key =%p, key_len =%d, key_idx =%d\n",
sme->privacy, sme->key, sme->key_len, sme->key_idx); sme->privacy, sme->key, sme->key_len, sme->key_idx);
if (wdev_to_priv(padapter->rtw_wdev)->block) {
ret = -EBUSY;
DBG_8723A("%s wdev_priv.block is set\n", __func__);
goto exit;
}
if (_FAIL == rtw_pwr_wakeup(padapter)) { if (_FAIL == rtw_pwr_wakeup(padapter)) {
ret = -EPERM; ret = -EPERM;
goto exit; goto exit;
...@@ -3406,7 +3400,6 @@ int rtw_wdev_alloc(struct rtw_adapter *padapter, struct device *dev) ...@@ -3406,7 +3400,6 @@ int rtw_wdev_alloc(struct rtw_adapter *padapter, struct device *dev)
spin_lock_init(&pwdev_priv->scan_req_lock); spin_lock_init(&pwdev_priv->scan_req_lock);
pwdev_priv->p2p_enabled = false; pwdev_priv->p2p_enabled = false;
pwdev_priv->provdisc_req_issued = false;
if (padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE) if (padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE)
pwdev_priv->power_mgmt = true; pwdev_priv->power_mgmt = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment