Skip to content

Commit 5ef73b6

Browse files
firewire: core: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a fallthrough pseudo-keyword. Link: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent f5e9724 commit 5ef73b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/firewire/core-topology.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count)
5858
case SELFID_PORT_PARENT:
5959
case SELFID_PORT_NCONN:
6060
(*total_port_count)++;
61+
fallthrough;
6162
case SELFID_PORT_NONE:
6263
break;
6364
}

0 commit comments

Comments
 (0)