Commit 44d043b5 authored by Yangyang Li's avatar Yangyang Li Committed by David S. Miller

net: lpc_eth: fix format warnings of block comments

Fix the following format warning:
1. Block comments use * on subsequent lines
2. Block comments use a trailing */ on a separate line
Signed-off-by: default avatarYangyang Li <liyangyang20@huawei.com>
Signed-off-by: default avatarWeihang Li <liweihang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 142c1d2e
...@@ -1044,7 +1044,8 @@ static netdev_tx_t lpc_eth_hard_start_xmit(struct sk_buff *skb, ...@@ -1044,7 +1044,8 @@ static netdev_tx_t lpc_eth_hard_start_xmit(struct sk_buff *skb,
if (pldat->num_used_tx_buffs >= (ENET_TX_DESC - 1)) { if (pldat->num_used_tx_buffs >= (ENET_TX_DESC - 1)) {
/* This function should never be called when there are no /* This function should never be called when there are no
buffers */ * buffers
*/
netif_stop_queue(ndev); netif_stop_queue(ndev);
spin_unlock_irq(&pldat->lock); spin_unlock_irq(&pldat->lock);
WARN(1, "BUG! TX request when no free TX buffers!\n"); WARN(1, "BUG! TX request when no free TX buffers!\n");
...@@ -1318,7 +1319,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) ...@@ -1318,7 +1319,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
pldat->dma_buff_size = PAGE_ALIGN(pldat->dma_buff_size); pldat->dma_buff_size = PAGE_ALIGN(pldat->dma_buff_size);
/* Allocate a chunk of memory for the DMA ethernet buffers /* Allocate a chunk of memory for the DMA ethernet buffers
and descriptors */ * and descriptors
*/
pldat->dma_buff_base_v = pldat->dma_buff_base_v =
dma_alloc_coherent(dev, dma_alloc_coherent(dev,
pldat->dma_buff_size, &dma_handle, pldat->dma_buff_size, &dma_handle,
...@@ -1365,7 +1367,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) ...@@ -1365,7 +1367,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
__lpc_mii_mngt_reset(pldat); __lpc_mii_mngt_reset(pldat);
/* Force default PHY interface setup in chip, this will probably be /* Force default PHY interface setup in chip, this will probably be
changed by the PHY driver */ * changed by the PHY driver
*/
pldat->link = 0; pldat->link = 0;
pldat->speed = 100; pldat->speed = 100;
pldat->duplex = DUPLEX_FULL; pldat->duplex = DUPLEX_FULL;
......
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