Signed-off-by: ZHAO Gang <gamerh2o@xxxxxxxxx> --- drivers/staging/et131x/et131x.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 7305fb5..764f7d0 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -2308,7 +2308,7 @@ static int et131x_rx_dma_memory_alloc(struct et131x_adapter *adapter) rx_ring->rx_status_bus = dma_addr; pr_info("Packet Status Ring %llx\n", - (unsigned long long) rx_ring->ps_ring_physaddr); + (unsigned long long)rx_ring->ps_ring_physaddr); pr_info("Receive Status Ring %llx\n", (unsigned long long)rx_ring->rx_status_bus); @@ -2332,8 +2332,9 @@ static void et131x_rx_dma_memory_free(struct et131x_adapter *adapter) WARN_ON(rx_ring->num_ready_recv != rx_ring->num_rfd); while (!list_empty(&rx_ring->recv_list)) { - rfd = (struct rfd *) list_entry(rx_ring->recv_list.next, - struct rfd, list_node); + rfd = list_entry(rx_ring->recv_list.next, + struct rfd, + list_node); list_del(&rfd->list_node); rfd->skb = NULL; @@ -2714,7 +2715,7 @@ static int et131x_tx_dma_memory_alloc(struct et131x_adapter *adapter) if (!tx_ring->tcb_ring) return -ENOMEM; - desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX); + desc_size = sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX; /* Allocate dma memory for Tx descriptors and Tx status block */ tx_ring->tx_desc_ring = dma_alloc_coherent(&adapter->pdev->dev, desc_size + sizeof(u32), @@ -2741,7 +2742,7 @@ static void et131x_tx_dma_memory_free(struct et131x_adapter *adapter) if (adapter->tx_ring.tx_desc_ring) { /* Free Tx descriptors and Tx status block memory */ - desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX); + desc_size = sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX; dma_free_coherent(&adapter->pdev->dev, desc_size + sizeof(u32), adapter->tx_ring.tx_desc_ring, -- 1.8.3.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel