static void belkin_sa_close (struct usb_serial_port *port, struct file *filp)
{
- struct usb_serial *serial;
-
- if (port_paranoia_check (port, __FUNCTION__))
- return;
-
- serial = get_usb_serial (port, __FUNCTION__);
- if (!serial)
- return;
-
dbg("%s port %d", __FUNCTION__, port->number);
- if (serial->dev) {
- /* shutdown our bulk reads and writes */
- usb_unlink_urb (port->write_urb);
- usb_unlink_urb (port->read_urb);
- usb_unlink_urb (port->interrupt_in_urb);
- }
+ /* shutdown our bulk reads and writes */
+ usb_unlink_urb (port->write_urb);
+ usb_unlink_urb (port->read_urb);
+ usb_unlink_urb (port->interrupt_in_urb);
} /* belkin_sa_close */
{
struct usb_serial_port *port = (struct usb_serial_port *)urb->context;
struct belkin_sa_private *priv;
- struct usb_serial *serial;
unsigned char *data = urb->transfer_buffer;
int retval;
unsigned long flags;
goto exit;
}
- if (port_paranoia_check (port, __FUNCTION__))
- return;
-
- serial = port->serial;
-
- if (serial_paranoia_check (serial, __FUNCTION__))
- return;
-
usb_serial_debug_data (__FILE__, __FUNCTION__, urb->actual_length, data);
/* Handle known interrupt data */