Просмотр исходного кода

[PATCH] synclink_gt: remove uneeded async code

Remove code in async receive handling that serves no purpose with new tty
receive buffering.  Previously this code tried to free up receive buffer
space, but now does nothing useful while making expensive calls.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Paul Fulghum 20 лет назад
Родитель
Сommit
be4676e61f
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      drivers/char/synclink_gt.c

+ 0 - 4
drivers/char/synclink_gt.c

@@ -1793,10 +1793,6 @@ static void rx_async(struct slgt_info *info)
 		DBGDATA(info, p, count, "rx");
 		DBGDATA(info, p, count, "rx");
 
 
 		for(i=0 ; i < count; i+=2, p+=2) {
 		for(i=0 ; i < count; i+=2, p+=2) {
-			if (tty && chars) {
-				tty_flip_buffer_push(tty);
-				chars = 0;
-			}
 			ch = *p;
 			ch = *p;
 			icount->rx++;
 			icount->rx++;