netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* coding style question on indentation
@ 2011-07-01 11:20 Sathya.Perla
  2011-07-01 11:52 ` Ben Hutchings
  2011-07-01 15:23 ` Joe Perches
  0 siblings, 2 replies; 5+ messages in thread
From: Sathya.Perla @ 2011-07-01 11:20 UTC (permalink / raw)
  To: netdev

Hi,
Which of the following styling is preferable when a function invocation spans more than one line:

a) Aligning the next line with the first argument by inserting a few spaces after the tabs - as in:

	dma_unmap_page(&adapter->pdev->dev,
			   dma_unmap_addr(rx_page_info, bus),
			   adapter->big_page_size, DMA_FROM_DEVICE);

Documentation/CodingStyle says "spaces are never used for indentation", but I see
scripts/Lindent inserting spaces after tabs for alignment.

OR

b) Just using tabs without needing to align as above:

	dma_unmap_page(&adapter->pdev->dev,
			dma_unmap_addr(rx_page_info, bus),
			adapter->big_page_size, DMA_FROM_DEVICE);


thanks,
-Sathya

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-05 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 11:20 coding style question on indentation Sathya.Perla
2011-07-01 11:52 ` Ben Hutchings
2011-07-01 15:23 ` Joe Perches
2011-07-05 19:54   ` Chris Friesen
2011-07-05 20:01     ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).