Skip to content

Commit

Permalink
[PATCH] libertas: remove adapter->regiontableindex
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Holger Schurig authored and David S. Miller committed Oct 10, 2007
1 parent ae596ce commit 956deb8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/libertas/cmdresp.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,13 @@ static int wlan_ret_get_hw_spec(wlan_private * priv,
for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) {
/* use the region code to search for the index */
if (adapter->regioncode == libertas_region_code_to_index[i]) {
adapter->regiontableindex = (u16) i;
break;
}
}

/* if it's unidentified region code, use the default (USA) */
if (i >= MRVDRV_MAX_REGION_CODE) {
adapter->regioncode = 0x10;
adapter->regiontableindex = 0;
lbs_pr_info("unidentified region code; using the default (USA)\n");
}

Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/libertas/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ struct _wlan_adapter {
u16 currentpacketfilter;
u32 connect_status;
u16 regioncode;
u16 regiontableindex;
u16 txpowerlevel;

/** POWER MANAGEMENT AND PnP SUPPORT */
Expand Down

0 comments on commit 956deb8

Please sign in to comment.