Re: [Patch] tty: move a definition out of switch block

From: Alan Cox
Date: Tue Dec 01 2009 - 11:04:08 EST


On Tue, 1 Dec 2009 02:54:44 -0500
Amerigo Wang <amwang@xxxxxxxxxx> wrote:

>
> It's not good to leave a definition between 'switch'
> and its first label. Move it out of the switch block.

"Not good". On what basis is it not good to put variables local to
their scope ?

Alan
--
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/