Re: Linux 2.6.26-rc5

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Thursday, June 5, 2008 - 9:19 am

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