diff mbox series

seg6: Delete invalid code

Message ID 20220929095649.2764540-1-wh_bin@126.com (mailing list archive)
State Rejected
Delegated to: Netdev Maintainers
Headers show
Series seg6: Delete invalid code | expand

Checks

Context Check Description
netdev/tree_selection success Guessed tree name to be net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 8 of 8 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Hongbin Wang Sept. 29, 2022, 9:56 a.m. UTC
void function return statements are not generally useful

Signed-off-by: Hongbin Wang <wh_bin@126.com>
---
 net/ipv6/seg6_local.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Jakub Kicinski Sept. 30, 2022, 1:25 a.m. UTC | #1
On Thu, 29 Sep 2022 05:56:49 -0400 Hongbin Wang wrote:
> void function return statements are not generally useful

I don't think this is worth applying, sorry.
diff mbox series

Patch

diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c
index b7de5e46fdd8..a799ac83df3a 100644
--- a/net/ipv6/seg6_local.c
+++ b/net/ipv6/seg6_local.c
@@ -1830,8 +1830,6 @@  static void seg6_local_destroy_state(struct lwtunnel_state *lwt)
 	seg6_local_lwtunnel_destroy_state(slwt);
 
 	destroy_attrs(slwt);
-
-	return;
 }
 
 static int seg6_local_fill_encap(struct sk_buff *skb,