[PATCH] v2.6.5 drivers/char/isicom.c

From: Wim Van Sebroeck
Date: Mon Apr 12 2004 - 11:46:12 EST


Hi Linus, Andrew,

A small fix for drivers/char/isicom.c .
It's untested since I don't have this hardware myself.

Greetings,
Wim.

================================================================================
diff -Nru a/drivers/char/isicom.c b/drivers/char/isicom.c
--- a/drivers/char/isicom.c Thu Mar 11 03:55:21 2004
+++ b/drivers/char/isicom.c Mon Apr 12 18:30:21 2004
@@ -1312,7 +1312,6 @@
unsigned int set, unsigned int clear)
{
struct isi_port * port = (struct isi_port *) tty->driver_data;
- unsigned int arg;
unsigned long flags;

if (isicom_paranoia_check(port, tty->name, "isicom_ioctl"))
@@ -1650,7 +1649,7 @@
static void unregister_drivers(void)
{
int error;
- if (tty_unregister_driver(isicom_normal))
+ if ((error = tty_unregister_driver(isicom_normal)))
printk(KERN_DEBUG "ISICOM: couldn't unregister normal driver error=%d.\n",error);
put_tty_driver(isicom_normal);
}
-
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/