Browse Source

tty: Call hangup method in modern style

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Hurley 11 năm trước cách đây
mục cha
commit
7c6d340f4f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/tty/tty_io.c

+ 1 - 1
drivers/tty/tty_io.c

@@ -688,7 +688,7 @@ static void __tty_hangup(struct tty_struct *tty, int exit_session)
 			for (n = 0; n < closecount; n++)
 				tty->ops->close(tty, cons_filp);
 	} else if (tty->ops->hangup)
-		(tty->ops->hangup)(tty);
+		tty->ops->hangup(tty);
 	/*
 	 * We don't want to have driver/ldisc interactions beyond
 	 * the ones we did here. The driver layer expects no