Commit 72e202d0 authored by Pekka Enberg's avatar Pekka Enberg Committed by Greg Kroah-Hartman

Staging: w35und: remove ->skb_array from struct wbsoft_priv

It's not actually used for anything, so remove it.
Acked-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3cae503b
...@@ -31,10 +31,7 @@ struct wbsoft_priv { ...@@ -31,10 +31,7 @@ struct wbsoft_priv {
u32 RxByteCount; u32 RxByteCount;
u32 TxByteCount; u32 TxByteCount;
struct sk_buff *skb_array[WBLINUX_PACKET_ARRAY_SIZE];
struct sk_buff *packet_return; struct sk_buff *packet_return;
s32 skb_SetIndex;
s32 skb_GetIndex;
s32 netif_state_stop; // 1: stop 0: normal s32 netif_state_stop; // 1: stop 0: normal
struct iw_statistics iw_stats; struct iw_statistics iw_stats;
......
...@@ -19,25 +19,9 @@ ...@@ -19,25 +19,9 @@
void void
WBLINUX_stop( struct wbsoft_priv * adapter ) WBLINUX_stop( struct wbsoft_priv * adapter )
{ {
struct sk_buff *pSkb;
if (atomic_inc_return(&adapter->ThreadCount) == 1) { if (atomic_inc_return(&adapter->ThreadCount) == 1) {
// Shutdown module immediately // Shutdown module immediately
adapter->shutdown = 1; 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_ #ifdef _PE_STATE_DUMP_
WBDEBUG(( "[w35und] SKB_RELEASE OK\n" )); WBDEBUG(( "[w35und] SKB_RELEASE OK\n" ));
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment