projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c78ba4
)
xfrm: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 20 Nov 2020 18:41:00 +0000
(12:41 -0600)
committer
Gustavo A. R. Silva
<gustavoars@kernel.org>
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 <gustavoars@kernel.org>
net/xfrm/xfrm_interface.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_interface.c
b/net/xfrm/xfrm_interface.c
index 8831f5a9e99233c8b1b19bd20705c5174f88530b..41de46b5ffa94a7bfa03d54919f54c36cbd03294 100644
(file)
--- a/
net/xfrm/xfrm_interface.c
+++ b/
net/xfrm/xfrm_interface.c
@@
-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: