From: Andi Kleen <[EMAIL PROTECTED]> Date: Thu, 5 Apr 2007 12:48:44 +0200
> The compiler eliminates them anyways and this makes the code easier to read > and shorter. > > Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> It depends upon who you ask :-) For someone trying to verify "all code paths lead to foo and therefore release resources and drop locks" it's always better to use a goto to some common unwind handler at the end of the function, regardless of what the compiler does with it. When you're doing such an audit, return statements in the middle of the function are red flags and make the audit more difficult. :-) But in these cases it's just straight returns and there are no resources to release so I'll apply this patch, thanks! - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html