Staging: w35und: remove unused link status code
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 29 Oct 2008 18:12:08 +0000 (20:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:51:46 +0000 (13:51 -0800)
The WBLINUX_ConnectStatus() and related code is not used anywhere so remove
them from the driver.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/winbond/adapter.h
drivers/staging/winbond/linux/common.h
drivers/staging/winbond/mds_s.h
drivers/staging/winbond/wblinux.c
drivers/staging/winbond/wblinux_f.h

index bc09e4142d8753263573e27f958d9df9ba60b702..fb07c7b2793b2e18ff50d3ac291b7cf4cbd99724 100644 (file)
@@ -1,9 +1,5 @@
-#define OS_LINK_STATUS                 (adapter->LinkStatus == OS_CONNECTED)
 #define OS_SET_SHUTDOWN( _A )          _A->shutdown=1
 #define OS_SET_RESUME( _A )            _A->shutdown=0
-#define OS_CONNECT_STATUS_INDICATE( _A, _F )           WBLINUX_ConnectStatus( _A, _F )
-#define OS_DISCONNECTED        0
-#define OS_CONNECTED   1
 #define OS_STOP( _A )  WBLINUX_stop( _A )
 
 #define OS_CURRENT_RX_BYTE( _A )               _A->RxByteCount
@@ -37,8 +33,6 @@ struct wb35_adapter {
 
        atomic_t ThreadCount;
 
-       u32 LinkStatus;         // OS_DISCONNECTED or OS_CONNECTED
-
        u32 RxByteCount;
        u32 TxByteCount;
 
index 8290779e09aad933c661ceb7a723b1b1d15cc142..23853da382735db086ffcdd8d3ba7f3e5d562155 100644 (file)
 #define WBDEBUG( _M )  0
 #endif
 
-#define OS_DISCONNECTED        0
-#define OS_CONNECTED   1
-
-
 #define OS_EVENT_INDICATE( _A, _B, _F )
 #define OS_PMKID_STATUS_EVENT( _A )
 
index e1d373e03c6ec6f5499741bfe7815bf69f6084db..04030b97d95eae24f773405bb4592598d43bed89 100644 (file)
@@ -25,7 +25,6 @@
 #define CURRENT_CONTROL_PORT_BLOCK             ( psSME->wpa_ok!=1 || (adapter->Mds.boCounterMeasureBlock==1 && (CURRENT_ENCRYPT_STATUS==ENCRYPT_TKIP)) )
 #define CURRENT_FRAGMENT_THRESHOLD             (adapter->Mds.TxFragmentThreshold & ~0x1)
 #define CURRENT_PREAMBLE_MODE                  psLOCAL->boShortPreamble?WLAN_PREAMBLE_TYPE_SHORT:WLAN_PREAMBLE_TYPE_LONG
-#define CURRENT_LINK_ON                                        OS_LINK_STATUS
 #define CURRENT_TX_RATE                                        adapter->sLocalPara.CurrentTxRate
 #define CURRENT_FALL_BACK_TX_RATE              adapter->sLocalPara.CurrentTxFallbackRate
 #define CURRENT_TX_RATE_FOR_MNG                        adapter->sLocalPara.CurrentTxRateForMng
index a662dde8e411a7598eec885eba7dd8702746a384..bba222a68e35cbac21f802bed9a2c39955d227ee 100644 (file)
@@ -224,9 +224,3 @@ error:
 
        return false;
 }
-
-void WBLINUX_ConnectStatus(struct wb35_adapter * adapter, u32 flag)
-{
-       adapter->LinkStatus = flag; // OS_DISCONNECTED  or  OS_CONNECTED
-}
-
index d763820081a1645ee518f2cecfe39f738fa9cc33..bfa69d738321ef880e85c77269c80ecf0151dd2c 100644 (file)
@@ -14,6 +14,5 @@ void wb35_set_multicast( struct net_device *netdev );
 struct net_device_stats * wb35_netdev_stats( struct net_device *netdev );
 void WBLINUX_stop(  struct wb35_adapter *adapter );
 void WbWlanHalt(  struct wb35_adapter *adapter );
-void WBLINUX_ConnectStatus(  struct wb35_adapter *adapter,  u32 flag );
 unsigned char WbWLanInitialize(struct wb35_adapter *adapter);