Commit 9c0343aa authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: kobil_sct: remove unused endpoint address

Remove unused interrupt-in endpoint address from private data.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e34c6c2
...@@ -107,7 +107,6 @@ static struct usb_serial_driver * const serial_drivers[] = { ...@@ -107,7 +107,6 @@ static struct usb_serial_driver * const serial_drivers[] = {
struct kobil_private { struct kobil_private {
int write_int_endpoint_address; int write_int_endpoint_address;
int read_int_endpoint_address;
unsigned char buf[KOBIL_BUF_LENGTH]; /* buffer for the APDU to send */ unsigned char buf[KOBIL_BUF_LENGTH]; /* buffer for the APDU to send */
int filled; /* index of the last char in buf */ int filled; /* index of the last char in buf */
int cur_pos; /* index of the next char to send in buf */ int cur_pos; /* index of the next char to send in buf */
...@@ -166,13 +165,6 @@ static int kobil_port_probe(struct usb_serial_port *port) ...@@ -166,13 +165,6 @@ static int kobil_port_probe(struct usb_serial_port *port)
priv->write_int_endpoint_address = priv->write_int_endpoint_address =
endpoint->desc.bEndpointAddress; endpoint->desc.bEndpointAddress;
} }
if (usb_endpoint_is_int_in(&endpoint->desc)) {
dev_dbg(&serial->dev->dev,
"%s Found interrupt in endpoint. Address: %d\n",
__func__, endpoint->desc.bEndpointAddress);
priv->read_int_endpoint_address =
endpoint->desc.bEndpointAddress;
}
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment