From: luo penghao Date: Thu, 11 Nov 2021 09:20:47 +0000 (+0000) Subject: ipv4: Remove duplicate assignments X-Git-Tag: block-5.17-2022-01-21~91^2~458 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0de3521500cfdc91f49441a054ed892fc408d73f;p=linux-2.6-block.git ipv4: Remove duplicate assignments there is a same action when the variable is initialized Reported-by: Zeal Robot Signed-off-by: luo penghao Signed-off-by: David S. Miller --- 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;