diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-04-16 12:01:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-17 13:05:35 -0400 |
commit | 9c0343aa6cbbb62b8b829c87b15839f35bdebbf2 (patch) | |
tree | 6956a112be8d21bd3d53252553f5fa483445977c | |
parent | 8e34c6c2ee9ed4cafe01e760e0c4bc1c8f7e9cb7 (diff) |
USB: kobil_sct: remove unused endpoint address
Remove unused interrupt-in endpoint address from private data.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/serial/kobil_sct.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index da1a372fc46c..5bcfd57267f7 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -107,7 +107,6 @@ static struct usb_serial_driver * const serial_drivers[] = { | |||
107 | 107 | ||
108 | struct kobil_private { | 108 | struct kobil_private { |
109 | int write_int_endpoint_address; | 109 | int write_int_endpoint_address; |
110 | int read_int_endpoint_address; | ||
111 | unsigned char buf[KOBIL_BUF_LENGTH]; /* buffer for the APDU to send */ | 110 | unsigned char buf[KOBIL_BUF_LENGTH]; /* buffer for the APDU to send */ |
112 | int filled; /* index of the last char in buf */ | 111 | int filled; /* index of the last char in buf */ |
113 | int cur_pos; /* index of the next char to send in buf */ | 112 | 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 | priv->write_int_endpoint_address = | 165 | priv->write_int_endpoint_address = |
167 | endpoint->desc.bEndpointAddress; | 166 | endpoint->desc.bEndpointAddress; |
168 | } | 167 | } |
169 | if (usb_endpoint_is_int_in(&endpoint->desc)) { | ||
170 | dev_dbg(&serial->dev->dev, | ||
171 | "%s Found interrupt in endpoint. Address: %d\n", | ||
172 | __func__, endpoint->desc.bEndpointAddress); | ||
173 | priv->read_int_endpoint_address = | ||
174 | endpoint->desc.bEndpointAddress; | ||
175 | } | ||
176 | } | 168 | } |
177 | return 0; | 169 | return 0; |
178 | } | 170 | } |