Re: -mm -> 2.6.13 merge status

From: Olivier Galibert
Date: Thu Jun 23 2005 - 11:24:18 EST


On Thu, Jun 23, 2005 at 08:15:03PM +0400, Vladimir Saveliev wrote:
> Pekka, would you prefer something like:
>
> reiser4_fill_super()
> {
> if (init_a() == 0) {
> if (init_b() == 0) {
> if (init_c() == 0) {
> if (init_last() == 0)
> return 0;
> else {
> done_c();
> done_b();
> done_a();
> }
> } else {
> done_b();
> done_a();
> }
> } else {
> done_a();
> }
> }
> }

No, I think he means the traditional:

reiser4_fill_super()
{
if (init_a())
goto failed_a;
if (init_b())
goto failed_b;
if (init_c())
goto failed_c;
if (init_last())
goto failed_last;
return 0;

failed_last:
done_c();
failed_c:
done_b();
failed_b:
done_a();
failed_a:
return 1;
}
-
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/