Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 912a046e authored by Johan Hovold's avatar Johan Hovold Committed by android-build-merger
Browse files

USB: serial: omninet: fix reference leaks at open

am: 6d6c5895

Change-Id: I305e7244ba3e9f6ad4519d38163be81938dc4a7a
parents 6a85adbe 6d6c5895
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -142,12 +142,6 @@ static int omninet_port_remove(struct usb_serial_port *port)


static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port)
static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port)
{
{
	struct usb_serial	*serial = port->serial;
	struct usb_serial_port	*wport;

	wport = serial->port[1];
	tty_port_tty_set(&wport->port, tty);

	return usb_serial_generic_open(tty, port);
	return usb_serial_generic_open(tty, port);
}
}