aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-08-02 13:10:41 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:05 -0400
commit956deb867a97ac137c164a5d2d12b0c82fb6776d (patch)
tree3572dd77f0c831087aa481276fb2056c9f49dc6b /drivers/net/wireless
parentae596ce2f77d1542fe44ea483bd0ca7f61baeccd (diff)
[PATCH] libertas: remove adapter->regiontableindex
The value was computed, but then never used. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c2
-rw-r--r--drivers/net/wireless/libertas/dev.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index 7aec0d4e20f9..53671e96b043 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -179,7 +179,6 @@ static int wlan_ret_get_hw_spec(wlan_private * priv,
179 for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) { 179 for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) {
180 /* use the region code to search for the index */ 180 /* use the region code to search for the index */
181 if (adapter->regioncode == libertas_region_code_to_index[i]) { 181 if (adapter->regioncode == libertas_region_code_to_index[i]) {
182 adapter->regiontableindex = (u16) i;
183 break; 182 break;
184 } 183 }
185 } 184 }
@@ -187,7 +186,6 @@ static int wlan_ret_get_hw_spec(wlan_private * priv,
187 /* if it's unidentified region code, use the default (USA) */ 186 /* if it's unidentified region code, use the default (USA) */
188 if (i >= MRVDRV_MAX_REGION_CODE) { 187 if (i >= MRVDRV_MAX_REGION_CODE) {
189 adapter->regioncode = 0x10; 188 adapter->regioncode = 0x10;
190 adapter->regiontableindex = 0;
191 lbs_pr_info("unidentified region code; using the default (USA)\n"); 189 lbs_pr_info("unidentified region code; using the default (USA)\n");
192 } 190 }
193 191
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h
index 693058ad0239..16e7ec11425b 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -298,7 +298,6 @@ struct _wlan_adapter {
298 u16 currentpacketfilter; 298 u16 currentpacketfilter;
299 u32 connect_status; 299 u32 connect_status;
300 u16 regioncode; 300 u16 regioncode;
301 u16 regiontableindex;
302 u16 txpowerlevel; 301 u16 txpowerlevel;
303 302
304 /** POWER MANAGEMENT AND PnP SUPPORT */ 303 /** POWER MANAGEMENT AND PnP SUPPORT */