projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e25f5d
)
xen: xenbus_probe_frontend: mark expected switch fall-throughs
author
Gustavo A. R. Silva
<
[email protected]
>
Thu, 2 Nov 2017 18:41:07 +0000
(13:41 -0500)
committer
Boris Ostrovsky
<
[email protected]
>
Fri, 3 Nov 2017 15:36:07 +0000
(11:36 -0400)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 146562
Addresses-Coverity-ID: 146563
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Reviewed-by: Juergen Gross <
[email protected]
>
Signed-off-by: Boris Ostrovsky <
[email protected]
>
drivers/xen/xenbus/xenbus_probe_frontend.c
patch
|
blob
|
history
diff --git
a/drivers/xen/xenbus/xenbus_probe_frontend.c
b/drivers/xen/xenbus/xenbus_probe_frontend.c
index 19e45ce21f891e19dc82e01e30cc5aedeb79a951..07896f4b273652cb0fadac3f4404990c002a53ef 100644
(file)
--- a/
drivers/xen/xenbus/xenbus_probe_frontend.c
+++ b/
drivers/xen/xenbus/xenbus_probe_frontend.c
@@
-379,10
+379,12
@@
static void xenbus_reset_frontend(char *fe, char *be, int be_state)
case XenbusStateConnected:
xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateClosing);
xenbus_reset_wait_for_backend(be, XenbusStateClosing);
+ /* fall through */
case XenbusStateClosing:
xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateClosed);
xenbus_reset_wait_for_backend(be, XenbusStateClosed);
+ /* fall through */
case XenbusStateClosed:
xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateInitialising);