mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: code cleanup in vt6656 DMA TX
Lindented, removed unused variables and cleared checkpatch warnings. Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7a8b005526
commit
e1669ed0d4
|
@ -1292,34 +1292,22 @@ static void __devexit vt6656_disconnect(struct usb_interface *intf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int device_dma0_tx_80211(struct sk_buff *skb, struct net_device *dev) {
|
static int device_dma0_tx_80211(struct sk_buff *skb, struct net_device *dev)
|
||||||
PSDevice pDevice=netdev_priv(dev);
|
{
|
||||||
PBYTE pbMPDU;
|
PSDevice pDevice = netdev_priv(dev);
|
||||||
unsigned int cbMPDULen = 0;
|
|
||||||
|
|
||||||
|
spin_lock_irq(&pDevice->lock);
|
||||||
|
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_dma0_tx_80211\n");
|
if (unlikely(pDevice->bStopTx0Pkt))
|
||||||
spin_lock_irq(&pDevice->lock);
|
dev_kfree_skb_irq(skb);
|
||||||
|
else
|
||||||
|
vDMA0_tx_80211(pDevice, skb);
|
||||||
|
|
||||||
if (pDevice->bStopTx0Pkt == TRUE) {
|
spin_unlock_irq(&pDevice->lock);
|
||||||
dev_kfree_skb_irq(skb);
|
|
||||||
spin_unlock_irq(&pDevice->lock);
|
|
||||||
return 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
cbMPDULen = skb->len;
|
|
||||||
pbMPDU = skb->data;
|
|
||||||
|
|
||||||
vDMA0_tx_80211(pDevice, skb);
|
|
||||||
|
|
||||||
spin_unlock_irq(&pDevice->lock);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
|
return NETDEV_TX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int device_xmit(struct sk_buff *skb, struct net_device *dev) {
|
static int device_xmit(struct sk_buff *skb, struct net_device *dev) {
|
||||||
PSDevice pDevice=netdev_priv(dev);
|
PSDevice pDevice=netdev_priv(dev);
|
||||||
struct net_device_stats* pStats = &pDevice->stats;
|
struct net_device_stats* pStats = &pDevice->stats;
|
||||||
|
|
Loading…
Reference in New Issue