From nobody Fri Jun 19 08:30:48 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A307AC433EF for ; Wed, 6 Apr 2022 12:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231904AbiDFMOj (ORCPT ); Wed, 6 Apr 2022 08:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbiDFMMI (ORCPT ); Wed, 6 Apr 2022 08:12:08 -0400 X-Greylist: delayed 3607 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 20:38:54 PDT Received: from m15113.mail.126.com (m15113.mail.126.com [220.181.15.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A74F2354D2D for ; Tue, 5 Apr 2022 20:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=cBzQY bALC2Ft4VBebUDpTOM6eZy0ea20UFYYZFAlbxg=; b=Ue82tJbY8gIXtkv7iVep0 E2NOmACflFjlZXfTmk8SeiJDQnpOuN4f4JCdhhXFdgaSlJDHg4sgrbAS8qCWRF4s eeM+qiYHZHZxSckG7kBLk+9Mgf52YZHH1OvaJvz+8JNnCZS037AbSb2Is6IQX7Fk RzV8bnQr+dgsS4ydUQcRWo= Received: from localhost.localdomain (unknown [39.99.236.58]) by smtp3 (Coremail) with SMTP id DcmowAAXHV229Uxi5SFMAQ--.31622S2; Wed, 06 Apr 2022 10:06:46 +0800 (CST) From: Hongbin Wang To: davem@davemloft.net Cc: yoshfuji@linux-ipv6.org, sahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ip6_tunnel: Remove duplicate assignments Date: Tue, 5 Apr 2022 22:06:34 -0400 Message-Id: <20220406020634.72995-1-wh_bin@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: DcmowAAXHV229Uxi5SFMAQ--.31622S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU7nNVDUUUU X-Originating-IP: [39.99.236.58] X-CM-SenderInfo: xzkbuxbq6rjloofrz/1tbiGBbaolpEGNmrIwAAsh Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" There is a same action when the variable is initialized Signed-off-by: Hongbin Wang --- net/ipv6/ip6_tunnel.c | 2 -- 1 file changed, 2 deletions(-) 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 =3D net_generic(net, ip6_tnl_net_id); int err; =20 - t =3D netdev_priv(dev); - dev->rtnl_link_ops =3D &ip6_link_ops; err =3D register_netdevice(dev); if (err < 0) --=20 2.25.1