Skip to contentSkip to conversation

vt: delete unneeded function bind_con_driver

PATCH In review Wang YanQing 1 participant 1 message May 8, 2013 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 7/9 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.

---
 drivers/tty/vt/vt.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/tty/vt/vt.c +0 -11
index 7e0953c..d5bfa86 100644
@@ -3088,17 +3088,6 @@ err:
 };
 
 
-static int bind_con_driver(const struct consw *csw, int first, int last,
-			   int deflt)
-{
-	int ret;
-
-	console_lock();
-	ret = do_bind_con_driver(csw, first, last, deflt);
-	console_unlock();
-	return ret;
-}
-
 #ifdef CONFIG_VT_HW_CONSOLE_BINDING
 static int con_is_graphics(const struct consw *csw, int first, int last)
 {
Signature · 1 line
1.7.12.4.dirty