Message ID | 20211111092047.159905-1-luo.penghao@zte.com.cn (mailing list archive) |
---|---|
State | Accepted |
Commit | 0de3521500cfdc91f49441a054ed892fc408d73f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [linux-next] ipv4: Remove duplicate assignments | expand |
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Thu, 11 Nov 2021 09:20:47 +0000 you wrote: > From: luo penghao <luo.penghao@zte.com.cn> > > 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> > > [...] Here is the summary with links: - [linux-next] ipv4: Remove duplicate assignments https://git.kernel.org/netdev/net-next/c/0de3521500cf You are awesome, thank you!
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 9bca57e..57c1d84 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;