Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2939401pxa; Tue, 18 Aug 2020 02:02:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR4gJlqKFE2ttwnsxYvi39N2h1hlRXRAPRignWB1t4W5U5FNqj7wvA7TUgt8r1yww38tPW X-Received: by 2002:a50:9dc2:: with SMTP id l2mr10952018edk.290.1597741365768; Tue, 18 Aug 2020 02:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597741365; cv=none; d=google.com; s=arc-20160816; b=mvVAwQvB54O81RtjiJihRneiJ/rrzB0sYNryVmyZeZWmpLGvbl8CCLVO2ydw6Asyel ZgFDJv0JVxMqRUQEeVw7p5/W6ZSe3C8j39jFRfAnb9Se+Z5VYsnGhYwLR/H3939V3kun 0V1PIfq9TjAe9E6z5M3F2mpUi+3IMsbBV5FtRoiu35+s0foNNwtQd3TmFOLeqNgcILTt AuNGZc0rHWLKZv1pceSgGWaZAoTjPJMVw6a8ZhqCdsEQMG0NbW5jABucmPnWBg8StUuQ rZcDL6AgseTg3x71ipHxu7EwGN/7tfSGoAkdCed76YGipioyO8pz562nCJCxAqacBYQ9 2d/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=O+0tbnz4B1UVyqlDuGhPiFYbYzQYZ+NXxVP+bjdJ9eM=; b=lN+Eo/2CktWQA4actwt/98Gobh7S54BlHTccK2EhvpzO5dorqhPReXH3FAlbkKHQCz o7SoEk9dspKLUfy3aT+QC5QttY98ilEKAwAQomN4+9XW1KHmpE9UXX8PFhKMItV2lhQb Ikw3qSrCKmZ1JNJDjgLTIG5JVtBErnkaGKfXa2mrEGjHC1ii+y5kE9P55eliKvsBSrKj LmCcsrunx7dFReRNCbXIVUVcLIZLehgsT6hLPiC79qIAYMv9lHR/nsCZxqhF9fuxqZY2 qcHajLn5C3UrbrhK+nepYPh4hhxoKWBv36n3mPv3QEMtr/t0iQVryz/06BVHq/x+gObv POkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl26si12722950ejb.568.2020.08.18.02.02.22; Tue, 18 Aug 2020 02:02:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbgHRI7D (ORCPT + 99 others); Tue, 18 Aug 2020 04:59:03 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:50616 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726341AbgHRI7D (ORCPT ); Tue, 18 Aug 2020 04:59:03 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-01 (Coremail) with SMTP id qwCowAD3lkRelztfI8eLAQ--.19298S2; Tue, 18 Aug 2020 16:54:54 +0800 (CST) From: Xu Wang To: davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, kuba@kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] rpl_iptunnel: simplify the return expression of rpl_do_srh() Date: Tue, 18 Aug 2020 08:54:54 +0000 Message-Id: <20200818085454.12224-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowAD3lkRelztfI8eLAQ--.19298S2 X-Coremail-Antispam: 1UD129KBjvdXoWruF47GF4DJrWfXFykAFWrXwb_yoW3JFg_CF 1vgFWxCrn3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/1tbiCwUMA1z4jXyoSgAAs2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Xu Wang --- net/ipv6/rpl_iptunnel.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/net/ipv6/rpl_iptunnel.c b/net/ipv6/rpl_iptunnel.c index 5fdf3ebb953f..e58ad9ac987c 100644 --- a/net/ipv6/rpl_iptunnel.c +++ b/net/ipv6/rpl_iptunnel.c @@ -197,11 +197,7 @@ static int rpl_do_srh(struct sk_buff *skb, const struct rpl_lwt *rlwt) tinfo = rpl_encap_lwtunnel(dst->lwtstate); - err = rpl_do_srh_inline(skb, rlwt, tinfo->srh); - if (err) - return err; - - return 0; + return rpl_do_srh_inline(skb, rlwt, tinfo->srh); } static int rpl_output(struct net *net, struct sock *sk, struct sk_buff *skb) -- 2.17.1