]> err.no Git - linux-2.6/commitdiff
[PATCH] libertas: remove adapter->regiontableindex
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 2 Aug 2007 17:10:41 +0000 (13:10 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:05 +0000 (16:50 -0700)
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>
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/dev.h

index 7aec0d4e20f9f02340ca2af2058c31c7fbebcd3c..53671e96b0435180ba4cb24d7115d91994bc4c8f 100644 (file)
@@ -179,7 +179,6 @@ 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;
                }
        }
@@ -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 (i >= MRVDRV_MAX_REGION_CODE) {
                adapter->regioncode = 0x10;
-               adapter->regiontableindex = 0;
                lbs_pr_info("unidentified region code; using the default (USA)\n");
        }
 
index 693058ad02394e910929926098447fc632e82b6d..16e7ec11425bcec0faba9733988dc44f29c00c99 100644 (file)
@@ -298,7 +298,6 @@ struct _wlan_adapter {
        u16 currentpacketfilter;
        u32 connect_status;
        u16 regioncode;
-       u16 regiontableindex;
        u16 txpowerlevel;
 
        /** POWER MANAGEMENT AND PnP SUPPORT */