[PATCH] oti6858: Remove broken ioctl code in -mm tree and also the broken fixes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <akpm@...>, <linux-kernel@...>, <linux-usb-devel@...>, <greg@...>
Date: Wednesday, August 22, 2007 - 6:11 pm

This stuff is simply not needed.

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.23rc3-mm1/drivers/usb/serial/oti6858.c linux-2.6.23rc3-mm1/drivers/usb/serial/oti6858.c
--- linux.vanilla-2.6.23rc3-mm1/drivers/usb/serial/oti6858.c	2007-08-22 17:23:08.000000000 +0100
+++ linux-2.6.23rc3-mm1/drivers/usb/serial/oti6858.c	2007-08-22 17:48:48.000000000 +0100
@@ -817,21 +817,6 @@
 				__FUNCTION__, port->number, cmd, arg);
 
 	switch (cmd) {
-		case TCGETS:
-			if (kernel_termios_to_user_termios((struct ktermios __user *)arg,
-							   port->tty->termios))
-				return -EFAULT;
-			return 0;
-
-		case TCSETS:
-		case TCSETSW:	/* FIXME: this is not the same! */
-		case TCSETSF:	/* FIXME: this is not the same! */
-			if (user_termios_to_kernel_termios(port->tty->termios,
-						(struct ktermios __user *)arg))
-				return -EFAULT;
-			oti6858_set_termios(port, NULL);
-			return 0;
-
 		case TCFLSH:
 			/* FIXME */
 			return 0;
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] oti6858: Remove broken ioctl code in -mm tree and al..., Alan Cox, (Wed Aug 22, 6:11 pm)