From: WANG Cong arch/um/drivers/chan_kern.c::chan_out_fd() is not used by anyone. Remove it. Acked-by: Jeff Dike Signed-off-by: WANG Cong Signed-off-by: Andrew Morton --- arch/um/drivers/chan_kern.c | 13 ------------- arch/um/include/chan_kern.h | 1 - 2 files changed, 14 deletions(-) diff -puN arch/um/drivers/chan_kern.c~uml-remove-a-useless-function arch/um/drivers/chan_kern.c --- a/arch/um/drivers/chan_kern.c~uml-remove-a-useless-function +++ a/arch/um/drivers/chan_kern.c @@ -583,19 +583,6 @@ int parse_chan_pair(char *str, struct li return 0; } -int chan_out_fd(struct list_head *chans) -{ - struct list_head *ele; - struct chan *chan; - - list_for_each(ele, chans) { - chan = list_entry(ele, struct chan, list); - if (chan->primary && chan->output) - return chan->fd; - } - return -1; -} - void chan_interrupt(struct list_head *chans, struct delayed_work *task, struct tty_struct *tty, int irq) { diff -puN arch/um/include/chan_kern.h~uml-remove-a-useless-function arch/um/include/chan_kern.h --- a/arch/um/include/chan_kern.h~uml-remove-a-useless-function +++ a/arch/um/include/chan_kern.h @@ -44,7 +44,6 @@ extern void close_chan(struct list_head extern int chan_window_size(struct list_head *chans, unsigned short *rows_out, unsigned short *cols_out); -extern int chan_out_fd(struct list_head *chans); extern int chan_config_string(struct list_head *chans, char *str, int size, char **error_out); _