]> git.baikalelectronics.ru Git - kernel.git/commit
vt: remove uneeded retval check before tty->ops->open inside tty_open
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Thu, 31 Mar 2011 18:35:31 +0000 (15:35 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 21:39:28 +0000 (14:39 -0700)
commitca87d249a44c30caa0929ed91fd6f29cba094470
tree15a6b8efb0d0f3103a55e720eea8537eae33d45d
parent4ac80a4fa15e01b0c69e225fce09539cab4a280b
vt: remove uneeded retval check before tty->ops->open inside tty_open

The current check is uneeded, since !retval will always returns true,
as retval returned from tty_add_file is checked earlier and tty_open
exits if it's not zero.

Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/tty_io.c