vt_ioctl: eliminate use of uival and ucval
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Jun 2020 07:49:02 +0000 (09:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:08:34 +0000 (17:08 +0200)
commiteca734d8f0043e9597c9426f829d48c381dbb388
tree485daee93b897a9db855b5df9056b3db60fadbab
parent0ce8179e248023606980823d970252e715f9f504
vt_ioctl: eliminate use of uival and ucval

They were used for the first parameter of put_user. But put_user accepts
constants in the parameter and also determines the type only by the
second parameter. So we can safely drop these helpers and simplify the
code a bit.

Including the removal of set_int label.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200615074910.19267-30-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt_ioctl.c