mirror of https://gitee.com/openkylin/linux.git
ath6kl: remove redundant variable ies_len
To get rid of W=1 warning: variable ‘ies_len’ set but not used. Variable ies_len is being assigned but never read. Signed-off-by: Kenneth Lu <kuohsianglu@gmail.com> Reviewed-by: Steve deRosier <derosier@gmail.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
4119b6160a
commit
d786ebb2f5
|
@ -2766,7 +2766,6 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev,
|
||||||
struct ieee80211_mgmt *mgmt;
|
struct ieee80211_mgmt *mgmt;
|
||||||
bool hidden = false;
|
bool hidden = false;
|
||||||
u8 *ies;
|
u8 *ies;
|
||||||
int ies_len;
|
|
||||||
struct wmi_connect_cmd p;
|
struct wmi_connect_cmd p;
|
||||||
int res;
|
int res;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
@ -2804,7 +2803,6 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev,
|
||||||
ies = mgmt->u.beacon.variable;
|
ies = mgmt->u.beacon.variable;
|
||||||
if (ies > info->beacon.head + info->beacon.head_len)
|
if (ies > info->beacon.head + info->beacon.head_len)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
ies_len = info->beacon.head + info->beacon.head_len - ies;
|
|
||||||
|
|
||||||
if (info->ssid == NULL)
|
if (info->ssid == NULL)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in New Issue