Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126582
b: refs/heads/master
c: 72e202d
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent bce8a6d commit 9560a89
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3cae503bf6dba576c13fd94c54fb6ddd9247799e
refs/heads/master: 72e202d00ef1ca9134010ff5574f165af6e382fe
3 changes: 0 additions & 3 deletions trunk/drivers/staging/winbond/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ struct wbsoft_priv {
u32 RxByteCount;
u32 TxByteCount;

struct sk_buff *skb_array[WBLINUX_PACKET_ARRAY_SIZE];
struct sk_buff *packet_return;
s32 skb_SetIndex;
s32 skb_GetIndex;
s32 netif_state_stop; // 1: stop 0: normal
struct iw_statistics iw_stats;

Expand Down
16 changes: 0 additions & 16 deletions trunk/drivers/staging/winbond/wblinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,9 @@
void
WBLINUX_stop( struct wbsoft_priv * adapter )
{
struct sk_buff *pSkb;

if (atomic_inc_return(&adapter->ThreadCount) == 1) {
// Shutdown module immediately
adapter->shutdown = 1;

while (adapter->skb_array[ adapter->skb_GetIndex ]) {
// Trying to free the un-sending packet
pSkb = adapter->skb_array[ adapter->skb_GetIndex ];
adapter->skb_array[ adapter->skb_GetIndex ] = NULL;
if( in_irq() )
dev_kfree_skb_irq( pSkb );
else
dev_kfree_skb( pSkb );

adapter->skb_GetIndex++;
adapter->skb_GetIndex %= WBLINUX_PACKET_ARRAY_SIZE;
}

#ifdef _PE_STATE_DUMP_
WBDEBUG(( "[w35und] SKB_RELEASE OK\n" ));
#endif
Expand Down

0 comments on commit 9560a89

Please sign in to comment.