From: Sukadev Bhattiprolu Date: Mon, 13 Oct 2008 09:43:27 +0000 (+0100) Subject: Simplify devpts_pty_kill X-Git-Tag: v2.6.28-rc1~627 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6f37daa8b892fd29dd71be0de61460a478cb122;p=pandora-kernel.git Simplify devpts_pty_kill When creating a new pty, save the pty's inode in the tty->driver_data. Use this inode in pty_kill() to identify the devpts instance. Since we now have the inode for the pty, we can skip get_node() lookup and remove the unused get_node(). TODO: - check if the mutex_lock is needed in pty_kill(). Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed