Commit 956deb86 authored by Holger Schurig's avatar Holger Schurig Committed by David S. Miller

[PATCH] libertas: remove adapter->regiontableindex

The value was computed, but then never used.
Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ae596ce2
...@@ -179,7 +179,6 @@ static int wlan_ret_get_hw_spec(wlan_private * priv, ...@@ -179,7 +179,6 @@ static int wlan_ret_get_hw_spec(wlan_private * priv,
for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) { for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) {
/* use the region code to search for the index */ /* use the region code to search for the index */
if (adapter->regioncode == libertas_region_code_to_index[i]) { if (adapter->regioncode == libertas_region_code_to_index[i]) {
adapter->regiontableindex = (u16) i;
break; break;
} }
} }
...@@ -187,7 +186,6 @@ static int wlan_ret_get_hw_spec(wlan_private * priv, ...@@ -187,7 +186,6 @@ static int wlan_ret_get_hw_spec(wlan_private * priv,
/* if it's unidentified region code, use the default (USA) */ /* if it's unidentified region code, use the default (USA) */
if (i >= MRVDRV_MAX_REGION_CODE) { if (i >= MRVDRV_MAX_REGION_CODE) {
adapter->regioncode = 0x10; adapter->regioncode = 0x10;
adapter->regiontableindex = 0;
lbs_pr_info("unidentified region code; using the default (USA)\n"); lbs_pr_info("unidentified region code; using the default (USA)\n");
} }
......
...@@ -298,7 +298,6 @@ struct _wlan_adapter { ...@@ -298,7 +298,6 @@ struct _wlan_adapter {
u16 currentpacketfilter; u16 currentpacketfilter;
u32 connect_status; u32 connect_status;
u16 regioncode; u16 regioncode;
u16 regiontableindex;
u16 txpowerlevel; u16 txpowerlevel;
/** POWER MANAGEMENT AND PnP SUPPORT */ /** POWER MANAGEMENT AND PnP SUPPORT */
......
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