Staging: w35und: Kill write-only ->TxToggle
authorPekka Enberg <penberg@kernel.org>
Sun, 28 Nov 2010 21:00:03 +0000 (23:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Dec 2010 22:45:46 +0000 (14:45 -0800)
This patch removes ->TxToggle from struct wb35_mds because it's a write only struct member.

Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/winbond/mds.c
drivers/staging/winbond/mds_s.h

index b4e0514b7f34547327e8fcd2ecea59bcfd877a96..0daabdc8d91c6315525dd70d4d787a57c3509f01 100644 (file)
@@ -481,11 +481,6 @@ Mds_Tx(struct wbsoft_priv *adapter)
                        XmitBufSize += CurrentSize;
                        XmitBufAddress += CurrentSize;
 
-#ifdef _IBSS_BEACON_SEQ_STICK_
-                       if ((XmitBufAddress[DOT_11_DA_OFFSET+8] & 0xfc) != MAC_SUBTYPE_MNGMNT_PROBE_REQUEST) /* +8 for USB hdr */
-#endif
-                               pMds->TxToggle = true;
-
                        /* Get packet to transmit completed, 1:TESTSTA 2:MLME 3: Ndis data */
                        MLME_SendComplete(adapter, 0, true);
 
index e2de4bd23b4dc944df98e7b108188799f2ec8609..eeedf01863651172fd53d31a806ed2363817579c 100644 (file)
@@ -107,10 +107,6 @@ struct wb35_mds {
        u8      TxRate[((MAX_USB_TX_DESCRIPTOR + 1) & ~0x01)][2]; /* [0] current tx rate, [1] fall back rate */
        u8      TxInfo[((MAX_USB_TX_DESCRIPTOR + 1) & ~0x01)]; /*Store information for callback function */
 
-       /* for scanning mechanism */
-       u8      TxToggle;       /* It is TRUE if there are tx activities in some time interval */
-       u8      Reserved_[3];
-
        /* ---- for Tx Parameter */
        u16     TxFragmentThreshold;    /* For frame body only */
        u16     TxRTSThreshold;