Staging: w35und: remove ->skb_array from struct wbsoft_priv
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 30 Oct 2008 16:12:06 +0000 (18:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:51:50 +0000 (13:51 -0800)
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>
drivers/staging/winbond/core.h
drivers/staging/winbond/wblinux.c

index c6dd223e722fae7604be31ab8ad7732588153328..9c9d5d29e6676be03c27a80f108f2efd6c29163a 100644 (file)
@@ -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;
 
index 9b436ac7e634bfea5a445a4c162e7fcbcc6cee6d..87db0a830a24eb93c60a033c423ba70429836132 100644 (file)
 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