]> Git Repo - linux.git/commitdiff
xfrm: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <[email protected]>
Fri, 20 Nov 2020 18:41:00 +0000 (12:41 -0600)
committerGustavo A. R. Silva <[email protected]>
Tue, 18 May 2021 01:11:06 +0000 (20:11 -0500)
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: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <[email protected]>
net/xfrm/xfrm_interface.c

index 8831f5a9e99233c8b1b19bd20705c5174f88530b..41de46b5ffa94a7bfa03d54919f54c36cbd03294 100644 (file)
@@ -432,6 +432,7 @@ static int xfrmi4_err(struct sk_buff *skb, u32 info)
        case ICMP_DEST_UNREACH:
                if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED)
                        return 0;
+               break;
        case ICMP_REDIRECT:
                break;
        default:
This page took 0.055057 seconds and 4 git commands to generate.