aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-11-11 09:20:47 +0000
committerDavid S. Miller <davem@davemloft.net>2021-11-14 12:20:44 +0000
commit0de3521500cfdc91f49441a054ed892fc408d73f (patch)
tree191ff4fef019a4cfe879704970a0043c896a3173 /net/ipv4/ip_output.c
parentipv4: drop unused assignment (diff)
downloadlinux-dev-0de3521500cfdc91f49441a054ed892fc408d73f.tar.xz
linux-dev-0de3521500cfdc91f49441a054ed892fc408d73f.zip
ipv4: Remove duplicate assignments
there is a same action when the variable is initialized Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: luo penghao <luo.penghao@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/ip_output.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 9bca57ef8b83..57c1d8431386 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -672,7 +672,6 @@ struct sk_buff *ip_frag_next(struct sk_buff *skb, struct ip_frag_state *state)
struct sk_buff *skb2;
struct iphdr *iph;
- len = state->left;
/* IF: it doesn't fit, use 'mtu' - the data space left */
if (len > state->mtu)
len = state->mtu;