From: Jiri Slaby Date: Mon, 30 Jan 2012 20:14:31 +0000 (+0100) Subject: TTY: pty, remove superfluous ptm test X-Git-Tag: v3.4-rc1~185^2~112^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a50f724a432997321cabb6c9e665c28e34850f78;p=pandora-kernel.git TTY: pty, remove superfluous ptm test The code looks like: if (tty->driver->subtype == PTY_TYPE_MASTER) { ... if (tty->driver == ptm_driver) But the second if is superfluous because only the ptm_driver is of PTY_TYPE_MASTER subtype. Also we can remove the #if now because devpts_pty_kill is defined as an empty function for non-CONFIG_UNIX98_PTYS configs. Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed