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

From: Jan Engelhardt
Date: Fri Apr 25 2008 - 11:12:41 EST



On Friday 2008-04-25 14:42, Peter Zijlstra 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.
>
Of course. You do not get that luxury in the middle of the function :^)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/