Skip to content

Commit

Permalink
ipv4: Remove duplicate assignments
Browse files Browse the repository at this point in the history
there is a same action when the variable is initialized

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: luo penghao <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
luo penghao authored and davem330 committed Nov 14, 2021
1 parent ef14102 commit 0de3521
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0de3521

Please sign in to comment.