Re: [PATCH] Intel Manageability Engine Interface driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Arjan van de Ven <arjan@...>
Cc: Andrew Morton <akpm@...>, Anas Nashif <nashif@...>, <linux-kernel@...>, Marek Dabek <marek.dabek@...>
Date: Tuesday, October 23, 2007 - 2:05 pm

On Tue, Oct 23, 2007 at 09:23:33AM -0700, Arjan van de Ven wrote:

What does gcc have to say about if (foo = 0){ rather than if (foo == 0){

Both are legal C so it shouldn't say anything.  Of course the first is
usually a bug (or very bad style).

On the other hand if (0 = foo) will give an error.

It isn't about how you read in english, it is about not making mistakes.
And why can't you say if 0 is equal to the variable foo rather than if
the variable foo is equal to 0?  Both are valid english, so that is just
a crappy excuse for sticking with a bad idea.

--
Len Sorensen
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Intel Manageability Engine Interface driver , Anas Nashif, (Mon Oct 22, 1:22 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Maxim Levitsky, (Mon Oct 22, 6:30 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Gerd Hoffmann, (Thu Oct 25, 5:33 am)
Re: [PATCH] Intel Manageability Engine Interface driver, Maxim Levitsky, (Tue Oct 23, 9:42 am)
Re: [PATCH] Intel Manageability Engine Interface driver, Andrew Morton, (Mon Oct 22, 2:40 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Lennart Sorensen, (Tue Oct 23, 11:04 am)
Re: [PATCH] Intel Manageability Engine Interface driver, Andrew Morton, (Tue Oct 23, 12:32 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Arjan van de Ven, (Tue Oct 23, 12:23 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Lennart Sorensen, (Tue Oct 23, 2:05 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Roland Dreier, (Tue Oct 23, 2:22 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Lennart Sorensen, (Tue Oct 23, 3:35 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Bernd Petrovitsch, (Wed Oct 24, 5:00 am)
Re: [PATCH] Intel Manageability Engine Interface driver, Andrew Morton, (Tue Oct 23, 12:25 pm)
Re: [PATCH] Intel Manageability Engine Interface driver, Maxim Levitsky, (Tue Oct 23, 9:36 am)
Re: [PATCH] Intel Manageability Engine Interface driver, Xavier Bestel, (Mon Oct 22, 2:28 pm)