Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vt: delete unneeded function bind_con_driver

Now there is no place use bind_con_driver,
and do_bind_con_driver can achieve bind_con_driver's
function easily, so just delete it to reduce code size and
duplication.

Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wang YanQing and committed by
Greg Kroah-Hartman
77d6c984 c62a1e57

-11
-11
drivers/tty/vt/vt.c
··· 3088 3088 }; 3089 3089 3090 3090 3091 - static int bind_con_driver(const struct consw *csw, int first, int last, 3092 - int deflt) 3093 - { 3094 - int ret; 3095 - 3096 - console_lock(); 3097 - ret = do_bind_con_driver(csw, first, last, deflt); 3098 - console_unlock(); 3099 - return ret; 3100 - } 3101 - 3102 3091 #ifdef CONFIG_VT_HW_CONSOLE_BINDING 3103 3092 static int con_is_graphics(const struct consw *csw, int first, int last) 3104 3093 {