[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130506.122040.1138770239806939990.davem@davemloft.net>
Date: Mon, 06 May 2013 12:20:40 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: sergei.shtylyov@...entembedded.com
Cc: netdev@...r.kernel.org, klassert@...hematik.tu-chemnitz.de,
tedheadster@...il.com
Subject: Re: [PATCH v2] 3c59x: fix PCI resource management
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Date: Thu, 2 May 2013 02:40:34 +0400
> @@ -1215,12 +1217,13 @@ static int vortex_probe1(struct device *
> vp->mii.reg_num_mask = 0x1f;
>
> /* Makes sure rings are at least 16 byte aligned. */
> - vp->rx_ring = pci_alloc_consistent(pdev, sizeof(struct boom_rx_desc) * RX_RING_SIZE
> - + sizeof(struct boom_tx_desc) * TX_RING_SIZE,
> - &vp->rx_ring_dma);
> + vp->rx_ring = pci_alloc_consistent(pdev,
> + sizeof(struct boom_rx_desc) * RX_RING_SIZE +
> + sizeof(struct boom_tx_desc) * TX_RING_SIZE,
> + &vp->rx_ring_dma);
This code was properly indented before your changes, but it isn't afterwards.
Function calls spanning multiple lines must align the arguments on the
second and subsequent lines at the first column after the openning
parenthesis of the function call, using the appropriate number of
TAB and space characters.
So:
func(a, b, c,
d, e, f);
not:
func(a, b, c,
d, e, f);
The objective is to align at the correct column, rather than exclusively
using TAB characters.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists