]> git.karo-electronics.de Git - linux-beck.git/commitdiff
vt: drop an useless enum and assignment.
authorAdam Borowski <kilobyte@angband.pl>
Wed, 19 Feb 2014 00:40:16 +0000 (01:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Mar 2014 00:25:47 +0000 (16:25 -0800)
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c

index 23b5d32954bfc9365ec6453d69e331e975ca8d0e..b7bde54db1389dd0de185b8bf496f80f88437c60 100644 (file)
@@ -1590,7 +1590,7 @@ static void restore_cur(struct vc_data *vc)
        vc->vc_need_wrap = 0;
 }
 
-enum { ESnormal, ESesc, ESsquare, ESgetpars, ESgotpars, ESfunckey,
+enum { ESnormal, ESesc, ESsquare, ESgetpars, ESfunckey,
        EShash, ESsetG0, ESsetG1, ESpercent, ESignore, ESnonstd,
        ESpalette };
 
@@ -1807,9 +1807,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
                        vc->vc_par[vc->vc_npar] *= 10;
                        vc->vc_par[vc->vc_npar] += c - '0';
                        return;
-               } else
-                       vc->vc_state = ESgotpars;
-       case ESgotpars:
+               }
                vc->vc_state = ESnormal;
                switch(c) {
                case 'h':