tiocmget: kill off the passing of the struct file
We don't actually need this and it causes problems for internal use of this functionality. Currently there is a single use of the FILE * pointer. That is the serial core which uses it to check tty_hung_up_p. However if that is true then IO_ERROR is also already set so the check may be removed. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
adf9251fe9
commit
60b33c133c
@@ -100,7 +100,7 @@ static void belkin_sa_process_read_urb(struct urb *urb);
|
||||
static void belkin_sa_set_termios(struct tty_struct *tty,
|
||||
struct usb_serial_port *port, struct ktermios * old);
|
||||
static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state);
|
||||
static int belkin_sa_tiocmget(struct tty_struct *tty, struct file *file);
|
||||
static int belkin_sa_tiocmget(struct tty_struct *tty);
|
||||
static int belkin_sa_tiocmset(struct tty_struct *tty, struct file *file,
|
||||
unsigned int set, unsigned int clear);
|
||||
|
||||
@@ -497,7 +497,7 @@ static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state)
|
||||
dev_err(&port->dev, "Set break_ctl %d\n", break_state);
|
||||
}
|
||||
|
||||
static int belkin_sa_tiocmget(struct tty_struct *tty, struct file *file)
|
||||
static int belkin_sa_tiocmget(struct tty_struct *tty)
|
||||
{
|
||||
struct usb_serial_port *port = tty->driver_data;
|
||||
struct belkin_sa_private *priv = usb_get_serial_port_data(port);
|
||||
|
Reference in New Issue
Block a user