Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>

+1 -17
+1 -17
drivers/usb/serial/quatech2.c
··· 480 480 } 481 481 } 482 482 483 - /* not needed, kept to document functionality */ 484 - static void qt2_process_xmit_empty(struct usb_serial_port *port, 485 - unsigned char *ch) 486 - { 487 - int bytes_written; 488 - 489 - bytes_written = (int)(*ch) + (int)(*(ch + 1) << 4); 490 - } 491 - 492 - /* not needed, kept to document functionality */ 493 - static void qt2_process_flush(struct usb_serial_port *port, unsigned char *ch) 494 - { 495 - return; 496 - } 497 - 498 483 static void qt2_process_read_urb(struct urb *urb) 499 484 { 500 485 struct usb_serial *serial; ··· 525 540 __func__); 526 541 break; 527 542 } 528 - qt2_process_xmit_empty(port, ch + 3); 543 + /* bytes_written = (ch[1] << 4) + ch[0]; */ 529 544 i += 4; 530 545 escapeflag = true; 531 546 break; ··· 554 569 break; 555 570 case QT2_REC_FLUSH: 556 571 case QT2_XMIT_FLUSH: 557 - qt2_process_flush(port, ch + 2); 558 572 i += 2; 559 573 escapeflag = true; 560 574 break;