Re: Initial work for ar9271

From: Luis R. Rodriguez
Date: Wed Aug 26 2009 - 00:35:24 EST


On Tue, Aug 25, 2009 at 9:31 PM, Joe Perches<joe@xxxxxxxxxxx> wrote:
> On Tue, 2009-08-25 at 21:03 -0700, Luis R. Rodriguez wrote:
>> If you'd like to work on the
>> driver I welcome patches:
>>
>> git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/ar9271.git
>
> I think this style ugly because it's non kernel standard.

Yup! Hence initial release.

> int func(args)
> {
> Â Â Â Âdo {
> Â Â Â Â Â Â Â Â[ linear code ...]
> Â Â Â Â Â Â Â Âif (err) {
> Â Â Â Â Â Â Â Â Â Â Â Âerrorcode = ;
> Â Â Â Â Â Â Â Â Â Â Â Âbreak;
> Â Â Â Â Â Â Â Â}
> Â Â Â Â Â Â Â Â[ more linear code ...]
> Â Â Â Â} while (0);
>
> Â Â Â Âif (errorcode) {
> Â Â Â Â Â Â Â Âhandle()...
> Â Â Â Â Â Â Â Âreturn some_err;
> Â Â Â Â}
>
> Â Â Â Âreturn 0;
> }
>
> It's a bit too much like a try/throw/catch block.

So I gladly welcome every type of patch. Nuke nuke nuke.

> Are patches accepted to convert it to the more
> commonly used kernel style using gotos?

Absolutely. Tons of things here have to be removed / ported / etc.
There is even kernel_thread() calls!

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