[2.6 patch] drivers/char/moxa.c: #if 0 an unused function
From: Adrian Bunk
Date: Sun Dec 05 2004 - 19:59:27 EST
On Sun, Dec 05, 2004 at 09:14:08PM +0100, Tomasz K?oczko wrote:
>...
> >- * 5. MoxaPortGetCurBaud(int port);
> >*
> > * 6. MoxaPortSetBaud(int port, long baud);
> > *
> > * 7. MoxaPortSetMode(int port, int databit, int stopbit, int parity);
> > *
> > * 8. MoxaPortSetTermio(int port, unsigned char *termio);
> > *
> [..]
>
> Prabaly it will be good renumber this or make unnumbered (and all other
> comments with "Function <num>:" :)
Perhaps the following patch is the best solution:
diffstat output:
drivers/char/moxa.c | 2 ++
1 files changed, 2 insertions(+)
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
--- linux-2.6.10-rc2-mm4-full/drivers/char/moxa.c.old 2004-12-06 01:30:18.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/drivers/char/moxa.c 2004-12-06 01:30:39.000000000 +0100
@@ -3090,6 +3090,7 @@
return (0);
}
+#if 0
long MoxaPortGetCurBaud(int port)
{
@@ -3097,6 +3098,7 @@
return (0);
return (moxaCurBaud[port]);
}
+#endif /* 0 */
static void MoxaSetFifo(int port, int enable)
{
-
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/