Commit 17504fd7 authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Greg Kroah-Hartman

vt: annotate implicit fall throughs

There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1). Fix them up.

This commit remove the following warning:

  drivers/tty/vt/vt.c:2112:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
  drivers/tty/vt/vt.c:2237:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
Acked-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95252f9c
...@@ -2111,6 +2111,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) ...@@ -2111,6 +2111,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
lf(vc); lf(vc);
if (!is_kbd(vc, lnm)) if (!is_kbd(vc, lnm))
return; return;
/* fall through */
case 13: case 13:
cr(vc); cr(vc);
return; return;
...@@ -2236,6 +2237,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) ...@@ -2236,6 +2237,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
vc->vc_ques = (c == '?'); vc->vc_ques = (c == '?');
if (vc->vc_ques) if (vc->vc_ques)
return; return;
/* fall through */
case ESgetpars: case ESgetpars:
if (c == ';' && vc->vc_npar < NPAR - 1) { if (c == ';' && vc->vc_npar < NPAR - 1) {
vc->vc_npar++; vc->vc_npar++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment