Re: Linux 2.6.26-rc5

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bjorn Helgaas <bjorn.helgaas@...>
Cc: Alejandro Riveira Fernández <ariveira@...>, Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Thursday, June 5, 2008 - 12:19 pm

On Thu, 5 Jun 2008, Bjorn Helgaas wrote:

Umm. If I was a compiler, I'd be warning about this. You don't get a 
warning about suggesting parentheses around the '&'?

Also, regardless of lack of warnings, the natural way to do this is to 
just say

	if (res->flags & (IORESOURCE_DISABLED | IORESOURCE_UNSET))
		continue;

which is what any sane compiler would rewrite it to anyway, but since it's 
not just more readable for computers, but for humans too, why not do it 
that way?

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

Messages in current thread:
Linux 2.6.26-rc5, Linus Torvalds, (Wed Jun 4, 11:36 pm)
Re: Linux 2.6.26-rc5, Jesper Krogh, (Sat Jun 7, 3:52 pm)
Re: Linux 2.6.26-rc5, Jesper Krogh, (Sat Jun 7, 3:44 pm)
Re: Linux 2.6.26-rc5, Frans Pop, (Sat Jun 7, 5:50 pm)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Sun Jun 8, 11:39 pm)
Re: Linux 2.6.26-rc5, Frans Pop, (Mon Jun 9, 6:01 am)
Re: Linux 2.6.26-rc5, Alex Romosan, (Thu Jun 5, 10:47 am)
Re: Linux 2.6.26-rc5, Ben Dooks, (Thu Jun 5, 10:43 am)
Re: Linux 2.6.26-rc5, Linus Torvalds, (Fri Jun 6, 2:35 pm)
ACPI pull for 2.6.26?, Adrian Bunk, (Tue Jun 10, 8:57 am)
Re: ACPI pull for 2.6.26?, Len Brown, (Tue Jun 10, 11:23 am)
Re: ACPI pull for 2.6.26?, Adrian Bunk, (Tue Jun 10, 11:39 am)
Re: Linux 2.6.26-rc5, Alejandro Riveira , (Thu Jun 5, 9:03 am)
Re: Linux 2.6.26-rc5, Linus Torvalds, (Thu Jun 5, 10:54 am)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Thu Jun 5, 12:12 pm)
Re: Linux 2.6.26-rc5, Linus Torvalds, (Thu Jun 5, 12:19 pm)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Thu Jun 5, 12:32 pm)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Thu Jun 5, 11:12 am)
Re: Linux 2.6.26-rc5, Olaf Hering, (Thu Jun 5, 7:24 am)
Re: Linux 2.6.26-rc5, Alan Cox, (Thu Jun 5, 8:42 am)
Re: Linux 2.6.26-rc5 (G5 SATA broken), Hugh Dickins, (Thu Jun 5, 8:09 am)
Re: Linux 2.6.26-rc5 (G5 SATA broken), Benjamin Herrenschmidt, (Fri Jun 6, 12:36 am)
Re: Linux 2.6.26-rc5 (G5 SATA broken), Alan Cox, (Thu Jun 5, 8:54 am)
[PATCH] libata: fix G5 SATA broken on -rc5, Hugh Dickins, (Thu Jun 5, 9:44 am)
Re: [PATCH] libata: fix G5 SATA broken on -rc5, Olaf Hering, (Thu Jun 5, 10:45 am)