Commit 3a851c03 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Greg Kroah-Hartman

usb: atm: cxacru: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4c6594d
...@@ -424,6 +424,7 @@ static ssize_t cxacru_sysfs_store_adsl_state(struct device *dev, ...@@ -424,6 +424,7 @@ static ssize_t cxacru_sysfs_store_adsl_state(struct device *dev,
case CXPOLL_STOPPING: case CXPOLL_STOPPING:
/* abort stop request */ /* abort stop request */
instance->poll_state = CXPOLL_POLLING; instance->poll_state = CXPOLL_POLLING;
/* fall through */
case CXPOLL_POLLING: case CXPOLL_POLLING:
case CXPOLL_SHUTDOWN: case CXPOLL_SHUTDOWN:
/* don't start polling */ /* don't start polling */
...@@ -795,6 +796,7 @@ static int cxacru_atm_start(struct usbatm_data *usbatm_instance, ...@@ -795,6 +796,7 @@ static int cxacru_atm_start(struct usbatm_data *usbatm_instance,
case CXPOLL_STOPPING: case CXPOLL_STOPPING:
/* abort stop request */ /* abort stop request */
instance->poll_state = CXPOLL_POLLING; instance->poll_state = CXPOLL_POLLING;
/* fall through */
case CXPOLL_POLLING: case CXPOLL_POLLING:
case CXPOLL_SHUTDOWN: case CXPOLL_SHUTDOWN:
/* don't start polling */ /* don't start polling */
......
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