summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuan.gao <yuan.gao@ucloud.cn>2026-06-03 09:53:23 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-05 04:26:11 +0300
commit831d557a3e40e99268bbcd2f65d23196cbed27b9 (patch)
tree30cc1fd9ba677b50543edd8a01228e10644446f3
parent144969cd80c5227c2b19fe5f644d6eebd61be586 (diff)
downloadlinux-831d557a3e40e99268bbcd2f65d23196cbed27b9.tar.xz
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 <yuan.gao@ucloud.cn> Link: https://patch.msgid.link/20260603065323.2736839-1-yuan.gao@ucloud.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--net/ipv4/inet_fragment.c2
1 files changed, 0 insertions, 2 deletions
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);