On Thu, Jan 10, 2008 at 11:44:20AM +0530, Nikanth Karthikesan wrote:
this looks line-wrapper by your mailer.
It's generally considered good style to only have as few as possible
return values. And this is especially important when returning from
a section that's under a lock. So in this case it would be much better
if you changes this function to have a local 'int error' variable
and then just do
error = -EFOO;
goto out_unlock;
wherever you have an early return with the end of the function looking
like
out_unlock:
unlock_kernel();
return error;
--