diff options
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 48baf28cc4b6..ec4e76f95044 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1492,7 +1492,6 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1492 | u8 *country_ie, | 1492 | u8 *country_ie, |
1493 | u8 country_ie_len) | 1493 | u8 country_ie_len) |
1494 | { | 1494 | { |
1495 | struct ieee80211_regdomain *rd = NULL; | ||
1496 | char alpha2[2]; | 1495 | char alpha2[2]; |
1497 | enum environment_cap env = ENVIRON_ANY; | 1496 | enum environment_cap env = ENVIRON_ANY; |
1498 | struct regulatory_request *request; | 1497 | struct regulatory_request *request; |
@@ -1529,7 +1528,7 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1529 | 1528 | ||
1530 | request = kzalloc(sizeof(struct regulatory_request), GFP_KERNEL); | 1529 | request = kzalloc(sizeof(struct regulatory_request), GFP_KERNEL); |
1531 | if (!request) | 1530 | if (!request) |
1532 | goto free_rd_out; | 1531 | goto out; |
1533 | 1532 | ||
1534 | request->wiphy_idx = get_wiphy_idx(wiphy); | 1533 | request->wiphy_idx = get_wiphy_idx(wiphy); |
1535 | request->alpha2[0] = alpha2[0]; | 1534 | request->alpha2[0] = alpha2[0]; |
@@ -1543,8 +1542,6 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1543 | 1542 | ||
1544 | return; | 1543 | return; |
1545 | 1544 | ||
1546 | free_rd_out: | ||
1547 | kfree(rd); | ||
1548 | out: | 1545 | out: |
1549 | mutex_unlock(®_mutex); | 1546 | mutex_unlock(®_mutex); |
1550 | } | 1547 | } |