Skip to content

Commit

Permalink
Staging: w35und: Kill write-only ->TxToggle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Dec 1, 2010
1 parent 9255650 commit 9618386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/winbond/mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/winbond/mds_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9618386

Please sign in to comment.