tty: tty_ldisc: Remove the ret variable
authorLi zeming <zeming@nfschina.com>
Wed, 22 Feb 2023 20:23:03 +0000 (04:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:11:18 +0000 (17:11 +0100)
commit728648c7c8bb054023b9b9f367e349d5b0afafd8
tree4e2559de9026c92322bd7733d299163a925b58f1
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
tty: tty_ldisc: Remove the ret variable

The int variable ret does not receive the return value in this function.
It should be removed and returned 0 directly.

Signed-off-by: Li zeming <zeming@nfschina.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230222202303.3195-1-zeming@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c