forked from Minki/linux
au1000-eth: stylistic fixes
This patch fixes the following checkpatch.pl warnings: - spaces after tabs - space between function and arguments - one-line statement braces - tabs instead of spaces Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3441592b34
commit
ec7eabdde2
@ -457,9 +457,9 @@ static struct db_dest *au1000_GetFreeDB(struct au1000_private *aup)
|
||||
struct db_dest *pDB;
|
||||
pDB = aup->pDBfree;
|
||||
|
||||
if (pDB) {
|
||||
if (pDB)
|
||||
aup->pDBfree = pDB->pnext;
|
||||
}
|
||||
|
||||
return pDB;
|
||||
}
|
||||
|
||||
@ -625,9 +625,9 @@ static int au1000_init(struct net_device *dev)
|
||||
aup->mac->mac_addr_low = dev->dev_addr[3]<<24 | dev->dev_addr[2]<<16 |
|
||||
dev->dev_addr[1]<<8 | dev->dev_addr[0];
|
||||
|
||||
for (i = 0; i < NUM_RX_DMA; i++) {
|
||||
for (i = 0; i < NUM_RX_DMA; i++)
|
||||
aup->rx_dma_ring[i]->buff_stat |= RX_DMA_ENABLE;
|
||||
}
|
||||
|
||||
au_sync();
|
||||
|
||||
control = MAC_RX_ENABLE | MAC_TX_ENABLE;
|
||||
@ -902,9 +902,9 @@ static netdev_tx_t au1000_tx(struct sk_buff *skb, struct net_device *dev)
|
||||
pDB = aup->tx_db_inuse[aup->tx_head];
|
||||
skb_copy_from_linear_data(skb, (void *)pDB->vaddr, skb->len);
|
||||
if (skb->len < ETH_ZLEN) {
|
||||
for (i = skb->len; i < ETH_ZLEN; i++) {
|
||||
for (i = skb->len; i < ETH_ZLEN; i++)
|
||||
((char *)pDB->vaddr)[i] = 0;
|
||||
}
|
||||
|
||||
ptxd->len = ETH_ZLEN;
|
||||
} else
|
||||
ptxd->len = skb->len;
|
||||
@ -1151,17 +1151,17 @@ static int __devinit au1000_probe(struct platform_device *pdev)
|
||||
|
||||
for (i = 0; i < NUM_RX_DMA; i++) {
|
||||
pDB = au1000_GetFreeDB(aup);
|
||||
if (!pDB) {
|
||||
if (!pDB)
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
aup->rx_dma_ring[i]->buff_stat = (unsigned)pDB->dma_addr;
|
||||
aup->rx_db_inuse[i] = pDB;
|
||||
}
|
||||
for (i = 0; i < NUM_TX_DMA; i++) {
|
||||
pDB = au1000_GetFreeDB(aup);
|
||||
if (!pDB) {
|
||||
if (!pDB)
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
aup->tx_dma_ring[i]->buff_stat = (unsigned)pDB->dma_addr;
|
||||
aup->tx_dma_ring[i]->len = 0;
|
||||
aup->tx_db_inuse[i] = pDB;
|
||||
|
Loading…
Reference in New Issue
Block a user