From: yuan.gao Date: Wed, 3 Jun 2026 06:53:23 +0000 (+0800) Subject: inet: frags: remove redundant assignment in inet_frag_reasm_prepare() X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=831d557a3e40e99268bbcd2f65d23196cbed27b9;p=thirdparty%2Flinux.git inet: frags: remove redundant assignment in inet_frag_reasm_prepare() The assignment is redundant because skb_clone() already copies skb->cb. Remove the unnecessary code. Signed-off-by: yuan.gao Link: https://patch.msgid.link/20260603065323.2736839-1-yuan.gao@ucloud.cn Signed-off-by: Jakub Kicinski --- diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c index 86b100694659..703c8dc4daad 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -519,7 +519,6 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb, head = skb; goto out_restore_sk; } - FRAG_CB(fp)->next_frag = FRAG_CB(skb)->next_frag; if (RB_EMPTY_NODE(&skb->rbnode)) FRAG_CB(parent)->next_frag = fp; else @@ -534,7 +533,6 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q, struct sk_buff *skb, skb->destructor = NULL; } skb_morph(skb, head); - FRAG_CB(skb)->next_frag = FRAG_CB(head)->next_frag; rb_replace_node(&head->rbnode, &skb->rbnode, &q->rb_fragments); consume_skb(head);