Commit b83076a9 authored by Johan Hovold's avatar Johan Hovold

USB: serial: quatech2: drop two stub functions

Drop two unused stub functions which only served as documentation.

This also avoids a W=1 (-Wunused-but-set-variable) warning.
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent c34a917a
...@@ -480,21 +480,6 @@ static void qt2_process_status(struct usb_serial_port *port, unsigned char *ch) ...@@ -480,21 +480,6 @@ static void qt2_process_status(struct usb_serial_port *port, unsigned char *ch)
} }
} }
/* not needed, kept to document functionality */
static void qt2_process_xmit_empty(struct usb_serial_port *port,
unsigned char *ch)
{
int bytes_written;
bytes_written = (int)(*ch) + (int)(*(ch + 1) << 4);
}
/* not needed, kept to document functionality */
static void qt2_process_flush(struct usb_serial_port *port, unsigned char *ch)
{
return;
}
static void qt2_process_read_urb(struct urb *urb) static void qt2_process_read_urb(struct urb *urb)
{ {
struct usb_serial *serial; struct usb_serial *serial;
...@@ -540,7 +525,7 @@ static void qt2_process_read_urb(struct urb *urb) ...@@ -540,7 +525,7 @@ static void qt2_process_read_urb(struct urb *urb)
__func__); __func__);
break; break;
} }
qt2_process_xmit_empty(port, ch + 3); /* bytes_written = (ch[1] << 4) + ch[0]; */
i += 4; i += 4;
escapeflag = true; escapeflag = true;
break; break;
...@@ -569,7 +554,6 @@ static void qt2_process_read_urb(struct urb *urb) ...@@ -569,7 +554,6 @@ static void qt2_process_read_urb(struct urb *urb)
break; break;
case QT2_REC_FLUSH: case QT2_REC_FLUSH:
case QT2_XMIT_FLUSH: case QT2_XMIT_FLUSH:
qt2_process_flush(port, ch + 2);
i += 2; i += 2;
escapeflag = true; escapeflag = true;
break; break;
......
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