From: Jiri Slaby Date: Thu, 18 Oct 2012 20:26:28 +0000 (+0200) Subject: TTY: devpts, return created inode from devpts_pty_new X-Git-Tag: omap-for-v3.8/cleanup-headers-serial-take2-signed~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=162b97cfa21f816f39ede1944f2a4220e3cf8969;p=pandora-kernel.git TTY: devpts, return created inode from devpts_pty_new The goal is to stop setting and using tty->driver_data in devpts code. It should be used solely by the driver's code, pty in this case. For the cleanup of layering, we will need the inode created in devpts_pty_new to be stored into slave's driver_data. So we convert devpts_pty_new to return the inode or an ERR_PTR-encoded error in case of failure. The move of 'inode = new_inode(sb);' from declarators to the code is only cosmetical, but it makes the code easier to read. Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed