Re: [PATCH] sched: add statics, don't return void expressions

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Engelhardt <jengelh@...>
Cc: Harvey Harrison <harvey.harrison@...>, Ingo Molnar <mingo@...>, LKML <linux-kernel@...>
Date: Friday, April 25, 2008 - 8:42 am

On Fri, 2008-04-25 at 14:32 +0200, Jan Engelhardt wrote:

Sure, but this was just to show the idiom at hand; an actual use case
would be something like this:

void bar(void)
{
	if (cond)
		return foo();

	/* do stuff ourselves */
}

Leaving out the return here does have side-effects.

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

Messages in current thread:
[PATCH] sched: add statics, don't return void expressions, Harvey Harrison, (Thu Apr 24, 9:17 pm)
Re: [PATCH] sched: add statics, don't return void expressions, Peter Zijlstra, (Fri Apr 25, 8:42 am)