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

isdn/gigaset: drop unused ldisc methods

The line discipline read and write methods are optional so the dummy
methods in ser_gigaset are unnecessary and can be removed.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tilman Schmidt and committed by
David S. Miller
62c13bad fd98e941

-24
-24
drivers/isdn/gigaset/ser-gigaset.c
··· 607 607 } 608 608 609 609 /* 610 - * Read on the tty. 611 - * Unused, received data goes only to the Gigaset driver. 612 - */ 613 - static ssize_t 614 - gigaset_tty_read(struct tty_struct *tty, struct file *file, 615 - unsigned char __user *buf, size_t count) 616 - { 617 - return -EAGAIN; 618 - } 619 - 620 - /* 621 - * Write on the tty. 622 - * Unused, transmit data comes only from the Gigaset driver. 623 - */ 624 - static ssize_t 625 - gigaset_tty_write(struct tty_struct *tty, struct file *file, 626 - const unsigned char *buf, size_t count) 627 - { 628 - return -EAGAIN; 629 - } 630 - 631 - /* 632 610 * Ioctl on the tty. 633 611 * Called in process context only. 634 612 * May be re-entered by multiple ioctl calling threads. ··· 739 761 .open = gigaset_tty_open, 740 762 .close = gigaset_tty_close, 741 763 .hangup = gigaset_tty_hangup, 742 - .read = gigaset_tty_read, 743 - .write = gigaset_tty_write, 744 764 .ioctl = gigaset_tty_ioctl, 745 765 .receive_buf = gigaset_tty_receive, 746 766 .write_wakeup = gigaset_tty_wakeup,