mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
wireless: remove unneeded variable from regulatory_hint_11d()
The "rd" variable isn't needed any more since 4f366c5dab
"wireless: only use alpha2 regulatory information from country IE"
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
7e988014cd
commit
f9f9b6e3e3
@ -1492,7 +1492,6 @@ void regulatory_hint_11d(struct wiphy *wiphy,
|
|||||||
u8 *country_ie,
|
u8 *country_ie,
|
||||||
u8 country_ie_len)
|
u8 country_ie_len)
|
||||||
{
|
{
|
||||||
struct ieee80211_regdomain *rd = NULL;
|
|
||||||
char alpha2[2];
|
char alpha2[2];
|
||||||
enum environment_cap env = ENVIRON_ANY;
|
enum environment_cap env = ENVIRON_ANY;
|
||||||
struct regulatory_request *request;
|
struct regulatory_request *request;
|
||||||
@ -1529,7 +1528,7 @@ void regulatory_hint_11d(struct wiphy *wiphy,
|
|||||||
|
|
||||||
request = kzalloc(sizeof(struct regulatory_request), GFP_KERNEL);
|
request = kzalloc(sizeof(struct regulatory_request), GFP_KERNEL);
|
||||||
if (!request)
|
if (!request)
|
||||||
goto free_rd_out;
|
goto out;
|
||||||
|
|
||||||
request->wiphy_idx = get_wiphy_idx(wiphy);
|
request->wiphy_idx = get_wiphy_idx(wiphy);
|
||||||
request->alpha2[0] = alpha2[0];
|
request->alpha2[0] = alpha2[0];
|
||||||
@ -1543,8 +1542,6 @@ void regulatory_hint_11d(struct wiphy *wiphy,
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
free_rd_out:
|
|
||||||
kfree(rd);
|
|
||||||
out:
|
out:
|
||||||
mutex_unlock(®_mutex);
|
mutex_unlock(®_mutex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user