Re: [PATCH] DM9000 network driver

From: John W. Linville
Date: Fri Mar 18 2005 - 10:59:41 EST


On Fri, Mar 18, 2005 at 10:25:54AM -0500, Lennart Sorensen wrote:
> On Fri, Mar 18, 2005 at 08:41:52PM +0530, Hong Kong Phoey wrote:

> > switch(foo) {
> >
> > case 1:
> > f1();
> > case2 :
> > f2();
> > };
> >
> > could well become
> >
> > void (*func)[] = { f1, f2 };
> >
> > func(i);
>
> Ewww!

My thoughts exactly...there might be a place for something like that,
but I don't think this is it...

John
--
John W. Linville
linville@xxxxxxxxxxxxx
-
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/