Commit 02d324b15dfa31b3b1025fb5abda08a8ee23ce84

Authored by WANG Cong
Committed by Linus Torvalds
1 parent 3af7cb7bbc

uml: remove a useless function

arch/um/drivers/chan_kern.c::chan_out_fd() is not used by anyone.  Remove it.

Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 0 additions and 14 deletions Side-by-side Diff

arch/um/drivers/chan_kern.c
... ... @@ -583,19 +583,6 @@
583 583 return 0;
584 584 }
585 585  
586   -int chan_out_fd(struct list_head *chans)
587   -{
588   - struct list_head *ele;
589   - struct chan *chan;
590   -
591   - list_for_each(ele, chans) {
592   - chan = list_entry(ele, struct chan, list);
593   - if (chan->primary && chan->output)
594   - return chan->fd;
595   - }
596   - return -1;
597   -}
598   -
599 586 void chan_interrupt(struct list_head *chans, struct delayed_work *task,
600 587 struct tty_struct *tty, int irq)
601 588 {
arch/um/include/chan_kern.h
... ... @@ -44,7 +44,6 @@
44 44 extern int chan_window_size(struct list_head *chans,
45 45 unsigned short *rows_out,
46 46 unsigned short *cols_out);
47   -extern int chan_out_fd(struct list_head *chans);
48 47 extern int chan_config_string(struct list_head *chans, char *str, int size,
49 48 char **error_out);
50 49