OSDN Git Service

tty: let tty_unregister_driver return void
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:22:05 +0000 (07:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:09 +0000 (09:34 +0100)
commita872ab4d6d191cca1ce84b945e394bd6a8d84dd9
treebf12a1be5a8d5fdca8ae92d92543991d6b748ded
parent6c2e6317c975c3cef1e08482a6ed8b734831ffbe
tty: let tty_unregister_driver return void

Now that noone checks the return value, switch the return type of
tty_unregister_driver to void. We can do that as we always return zero.

Generally, drivers are not allowed to call tty_unregister_driver while
there are open devices.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-35-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
include/linux/tty.h