Re: [PATCH GIT] drivers/block/ub.c - misc. cleanup/indentation,removed unneeded return

From: Jan Engelhardt
Date: Thu Feb 09 2006 - 12:22:27 EST


>> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/