Re: [git pull] PCI pull request for 2.6.27

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Maciej W. Rozycki
Date: Wednesday, July 16, 2008 - 5:23 pm

On Wed, 16 Jul 2008, Jesse Barnes wrote:


 Conveniently "for" is short enough for indentation like this:

	for (addr = (u8 *) __va(0xf0000);
	     addr < (u8 *) __va(0x100000);
	     addr += 16) {
                rt = pirq_check_routing_table(addr);

to make the piece of code both well-readable and polite to the right edge
of the terminal.  That would be my preference -- I hope you agree.

 Of course, in many cases it may be better to make use of auxiliary
variables instead.  GCC has to evaluate the expressions used anyway and
any names given to them come for free for any half-decent version of the
compiler.

  Maciej
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] PCI pull request for 2.6.27, Jesse Barnes, (Wed Jul 16, 4:39 pm)
Re: [git pull] PCI pull request for 2.6.27, Linus Torvalds, (Wed Jul 16, 4:50 pm)
Re: [git pull] PCI pull request for 2.6.27, Jesse Barnes, (Wed Jul 16, 4:54 pm)
Re: [git pull] PCI pull request for 2.6.27, Maciej W. Rozycki, (Wed Jul 16, 5:23 pm)
Re: [git pull] PCI pull request for 2.6.27, Linus Torvalds, (Wed Jul 16, 5:28 pm)
Re: [git pull] PCI pull request for 2.6.27, Linus Torvalds, (Wed Jul 16, 5:38 pm)