diff options
author | Pekka Enberg | 2008-10-30 17:12:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-01-06 22:51:50 +0100 |
commit | 72e202d00ef1ca9134010ff5574f165af6e382fe (patch) | |
tree | 519ac3534e8cf02f28f42b9a7177261d86f454e6 /drivers/staging/winbond/wblinux.c | |
parent | Staging: w35und: move packet_came() to wb35rx.c (diff) | |
download | kernel-qcow2-linux-72e202d00ef1ca9134010ff5574f165af6e382fe.tar.gz kernel-qcow2-linux-72e202d00ef1ca9134010ff5574f165af6e382fe.tar.xz kernel-qcow2-linux-72e202d00ef1ca9134010ff5574f165af6e382fe.zip |
Staging: w35und: remove ->skb_array from struct wbsoft_priv
It's not actually used for anything, so remove it.
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>
Diffstat (limited to 'drivers/staging/winbond/wblinux.c')
-rw-r--r-- | drivers/staging/winbond/wblinux.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/staging/winbond/wblinux.c b/drivers/staging/winbond/wblinux.c index 9b436ac7e634..87db0a830a24 100644 --- a/drivers/staging/winbond/wblinux.c +++ b/drivers/staging/winbond/wblinux.c @@ -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 |