Messages in this thread | | | Date | Thu, 9 Feb 2006 18:24:20 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: [PATCH GIT] drivers/block/ub.c - misc. cleanup/indentation, removed unneeded return |
| |
>> I created this little patch while reading through drivers/block/ub.c. It fixes >> some indentation/whitespace as well as some empty commenting, an hardcoded >> module name and an unneeded return. > >I strongly disagree. > >But the rest is quite bad, the worst being indenting the switch statement. > switch(a) { case A: dosomething; break; }
Now what if
switch(a) { case A: { int tmp; do_something; break; } }
Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |