diff mbox series

ip6_tunnel: Remove duplicate assignments

Message ID 20220406020634.72995-1-wh_bin@126.com (mailing list archive)
State Accepted
Commit 487dc3ca60e3e420d54bcc613cb49e8e85f34569
Delegated to: Netdev Maintainers
Headers show
Series ip6_tunnel: Remove duplicate assignments | expand

Checks

Context Check Description
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 warning 1 maintainers not CCed: dsahern@kernel.org
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/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
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Hongbin Wang April 6, 2022, 2:06 a.m. UTC
There is a same action when the variable is initialized

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

Comments

patchwork-bot+netdevbpf@kernel.org April 6, 2022, 2:40 p.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Tue,  5 Apr 2022 22:06:34 -0400 you wrote:
> There is a same action when the variable is initialized
> 
> Signed-off-by: Hongbin Wang <wh_bin@126.com>
> ---
>  net/ipv6/ip6_tunnel.c | 2 --
>  1 file changed, 2 deletions(-)

Here is the summary with links:
  - ip6_tunnel: Remove duplicate assignments
    https://git.kernel.org/netdev/net-next/c/487dc3ca60e3

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 53f632a560ec..19325b7600bb 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -257,8 +257,6 @@  static int ip6_tnl_create2(struct net_device *dev)
 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
 	int err;
 
-	t = netdev_priv(dev);
-
 	dev->rtnl_link_ops = &ip6_link_ops;
 	err = register_netdevice(dev);
 	if (err < 0)