Commit 2a566f01 authored by Jinpeng Cui's avatar Jinpeng Cui Committed by David S. Miller

net: sched: act_ct: remove redundant variable err

Return value directly from pskb_trim_rcsum() instead of
getting value from redundant variable err.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarJinpeng Cui <cui.jinpeng2@zte.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c29b0682
...@@ -696,7 +696,6 @@ static bool tcf_ct_skb_nfct_cached(struct net *net, struct sk_buff *skb, ...@@ -696,7 +696,6 @@ static bool tcf_ct_skb_nfct_cached(struct net *net, struct sk_buff *skb,
static int tcf_ct_skb_network_trim(struct sk_buff *skb, int family) static int tcf_ct_skb_network_trim(struct sk_buff *skb, int family)
{ {
unsigned int len; unsigned int len;
int err;
switch (family) { switch (family) {
case NFPROTO_IPV4: case NFPROTO_IPV4:
...@@ -710,9 +709,7 @@ static int tcf_ct_skb_network_trim(struct sk_buff *skb, int family) ...@@ -710,9 +709,7 @@ static int tcf_ct_skb_network_trim(struct sk_buff *skb, int family)
len = skb->len; len = skb->len;
} }
err = pskb_trim_rcsum(skb, len); return pskb_trim_rcsum(skb, len);
return err;
} }
static u8 tcf_ct_skb_nf_family(struct sk_buff *skb) static u8 tcf_ct_skb_nf_family(struct sk_buff *skb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment