Signed-off-by: Felix Fietkau <nbd@nbd.name>
case IFEV_UP:
interface_error_flush(iface);
adev = iface->l3_dev.dev;
- /* fall through */
+ fallthrough;
case IFEV_DOWN:
case IFEV_UP_FAILED:
alias_notify_device(iface->name, adev);
case IFS_DOWN:
if (iface->main_dev.dev)
device_release(&iface->main_dev);
+ break;
case IFS_TEARDOWN:
default:
break;
return 0;
}
/* if no script task is running */
- /* fall through */
+ fallthrough;
case S_IDLE:
action = "teardown";
state->renew_pending = false;
case S_IDLE:
if (task == &state->proto_task)
state->proto.proto_event(&state->proto, IFPEV_LINK_LOST);
- /* fall through */
+ fallthrough;
case S_SETUP:
if (task == &state->proto_task)
proto_shell_handler(&state->proto, PROTO_CMD_TEARDOWN,
switch (state->sm) {
case S_IDLE:
state->proto.proto_event(&state->proto, IFPEV_LINK_LOST);
- /* fall through */
+ fallthrough;
case S_SETUP:
proto_shell_handler(&state->proto, PROTO_CMD_TEARDOWN, false);
break;