Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192u: Delete 'fwSendNullPacket' function in r819xU_firmware.c

Delete the fwSendNullPacket function that is not used in anywhere in
the driver.

Fix sparse warnings:
drivers/staging/rtl8192u/r819xU_firmware.c:109:1: warning: symbol 'fwSendNullPacket' was not declared. Should it be static?

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ana Rey and committed by
Greg Kroah-Hartman
e42c0e77 2cc817c0

-40
-40
drivers/staging/rtl8192u/r819xU_firmware.c
··· 105 105 106 106 } 107 107 108 - bool 109 - fwSendNullPacket( 110 - struct net_device *dev, 111 - u32 Length 112 - ) 113 - { 114 - bool rtStatus = true; 115 - struct r8192_priv *priv = ieee80211_priv(dev); 116 - struct sk_buff *skb; 117 - cb_desc *tcb_desc; 118 - unsigned char *ptr_buf; 119 - bool bLastInitPacket = false; 120 - 121 - //PlatformAcquireSpinLock(Adapter, RT_TX_SPINLOCK); 122 - 123 - //Get TCB and local buffer from common pool. (It is shared by CmdQ, MgntQ, and USB coalesce DataQ) 124 - skb = dev_alloc_skb(Length+ 4); 125 - memcpy((unsigned char *)(skb->cb),&dev,sizeof(dev)); 126 - tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE); 127 - tcb_desc->queue_index = TXCMD_QUEUE; 128 - tcb_desc->bCmdOrInit = DESC_PACKET_TYPE_INIT; 129 - tcb_desc->bLastIniPkt = bLastInitPacket; 130 - ptr_buf = skb_put(skb, Length); 131 - memset(ptr_buf,0,Length); 132 - tcb_desc->txbuf_size= (u16)Length; 133 - 134 - if (!priv->ieee80211->check_nic_enough_desc(dev,tcb_desc->queue_index)|| 135 - (!skb_queue_empty(&priv->ieee80211->skb_waitQ[tcb_desc->queue_index]))||\ 136 - (priv->ieee80211->queue_stop) ) { 137 - RT_TRACE(COMP_FIRMWARE,"===================NULL packet==================================> tx full!\n"); 138 - skb_queue_tail(&priv->ieee80211->skb_waitQ[tcb_desc->queue_index], skb); 139 - } else { 140 - priv->ieee80211->softmac_hard_start_xmit(skb,dev); 141 - } 142 - 143 - //PlatformReleaseSpinLock(Adapter, RT_TX_SPINLOCK); 144 - return rtStatus; 145 - } 146 - 147 - 148 108 //----------------------------------------------------------------------------- 149 109 // Procedure: Check whether main code is download OK. If OK, turn on CPU 150 110 //