提交 34bcfdac 编写于 作者: G Gustavo A. R. Silva 提交者: Greg Kroah-Hartman

parport: ieee1284: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: NSudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 faa1a473
...@@ -267,7 +267,7 @@ static void parport_ieee1284_terminate (struct parport *port) ...@@ -267,7 +267,7 @@ static void parport_ieee1284_terminate (struct parport *port)
port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
} }
/* fall-though.. */ /* fall through */
default: default:
/* Terminate from all other modes. */ /* Terminate from all other modes. */
...@@ -615,6 +615,7 @@ ssize_t parport_write (struct parport *port, const void *buffer, size_t len) ...@@ -615,6 +615,7 @@ ssize_t parport_write (struct parport *port, const void *buffer, size_t len)
case IEEE1284_MODE_NIBBLE: case IEEE1284_MODE_NIBBLE:
case IEEE1284_MODE_BYTE: case IEEE1284_MODE_BYTE:
parport_negotiate (port, IEEE1284_MODE_COMPAT); parport_negotiate (port, IEEE1284_MODE_COMPAT);
/* fall through */
case IEEE1284_MODE_COMPAT: case IEEE1284_MODE_COMPAT:
DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n", DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n",
port->name); port->name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册