[PATCH 2/6] net/macb: add scatter-gather hw feature

David Miller davem at davemloft.net
Sun Jul 20 21:13:37 PDT 2014


From: Cyrille Pitchen <cyrille.pitchen at atmel.com>
Date: Fri, 18 Jul 2014 16:21:14 +0200

> +		if (tx_skb->mapped_as_page) {
> +			dma_unmap_page(&bp->pdev->dev, tx_skb->mapping,
> +				       tx_skb->size, DMA_TO_DEVICE);
> +		} else {
> +			dma_unmap_single(&bp->pdev->dev, tx_skb->mapping,
> +					 tx_skb->size, DMA_TO_DEVICE);
> +		}

Please do not use curly braces for basic block composed of a single statement.



More information about the linux-arm-kernel mailing list