mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
USB: keyspan_pda: remove bogus disconnect test from dtr_rts
Remove bogus (and unnecessary) test for serial->dev being NULL in dtr_rts. The device is never cleared, and disconnect is handled for dtr_rts in usb-serial core anyway. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
80dfe0ceb3
commit
d7f08452ff
1 changed files with 4 additions and 6 deletions
|
@ -595,13 +595,11 @@ static void keyspan_pda_dtr_rts(struct usb_serial_port *port, int on)
|
||||||
{
|
{
|
||||||
struct usb_serial *serial = port->serial;
|
struct usb_serial *serial = port->serial;
|
||||||
|
|
||||||
if (serial->dev) {
|
|
||||||
if (on)
|
if (on)
|
||||||
keyspan_pda_set_modem_info(serial, (1 << 7) | (1 << 2));
|
keyspan_pda_set_modem_info(serial, (1 << 7) | (1 << 2));
|
||||||
else
|
else
|
||||||
keyspan_pda_set_modem_info(serial, 0);
|
keyspan_pda_set_modem_info(serial, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int keyspan_pda_open(struct tty_struct *tty,
|
static int keyspan_pda_open(struct tty_struct *tty,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue