On Wed, Jul 22, 2009 at 11:50 PM, Li Zefan<lizf@xxxxxxxxxxxxxx> wrote: >> Because it's not needed for the entire scope of the function. Keeping >> its scope as small as possible makes it clearer what it's being used >> for. >> > > If we had been doing this, we'll see many: > > (no if, while, for) > { > ... > } > > in kernel code, but I don't remember I ever saw this style. > Documentation/CodingStyle is silent on this subject. But OK, I've moved new_root back to the top level. I think that it's a net loss to readability though. Paul _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers