Skip to content

Commit 135436a

Browse files
xfrm: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 1c78ba4 commit 135436a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/xfrm/xfrm_interface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ static int xfrmi4_err(struct sk_buff *skb, u32 info)
432432
case ICMP_DEST_UNREACH:
433433
if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED)
434434
return 0;
435+
break;
435436
case ICMP_REDIRECT:
436437
break;
437438
default:

0 commit comments

Comments
 (0)