From: Milton Miller Date: Fri, 8 Jul 2005 00:56:21 +0000 (-0700) Subject: [PATCH] hvc_console: remove num_vterms and some dead code X-Git-Tag: v2.6.13-rc3~285 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=5f6d9c072df162a8601a09e6c63fd0e4f5aecd06;p=~emulex%2Finfiniband.git [PATCH] hvc_console: remove num_vterms and some dead code num_vterms hasn't been used since the hotplug support went in. Also, remove a dead code line from a list_for_each_entry conversion. Signed-off-by: Milton Miller Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c index 31980994fea..fd753250425 100644 --- a/drivers/char/hvc_console.c +++ b/drivers/char/hvc_console.c @@ -146,8 +146,6 @@ struct hvc_struct *hvc_get_by_index(int index) */ static uint32_t vtermnos[MAX_NR_HVC_CONSOLES]; -/* Used for accounting purposes */ -static int num_vterms = 0; /* * Console APIs, NOT TTY. These APIs are available immediately when @@ -219,7 +217,7 @@ static int __init hvc_console_init(void) for (i=0; i