From nobody Mon Jun 8 06:38:19 2026 Received: from mail-m49218.qiye.163.com (mail-m49218.qiye.163.com [45.254.49.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58E20407CEF; Wed, 3 Jun 2026 06:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.218 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780469974; cv=none; b=V6J3kzI6pd2H+75TwXGa8mcNcO+LLxJoKHLoAgxCgbxjXr2/xjRsY02JgGBTqQ/o/UOra6ODRklmX3FBB3C3Snb4ARULy+SiPIwqK8QGFLbKccjR0dcsTJUyXOdJRX1LeZk8tlx7BTegU4T7MZ40xQxbtoIvpupiE2bj0WOuiXo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780469974; c=relaxed/simple; bh=YeDj+vW/ls6yG/Z6ri+CsMKidy6SP4mcnKYTvR1VFiU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ikjvX76lPXM1cR2GbA8J9M+0g+hoI0UuhhoyI03wkSuNIr3HpilAXElRUS/1r4rPHMdJmL1eSaKJD3eGEN0O7VAEQAP9at9bThtpgtiFc36FS5k8Y8LL3ywcy9nZ6QcSw4TBiVJ4YYmx+ENtZtT+7idKXUwKWWkQCA2icIR367I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ucloud.cn; spf=pass smtp.mailfrom=ucloud.cn; dkim=pass (1024-bit key) header.d=ucloud.cn header.i=@ucloud.cn header.b=aAqjcE9b; arc=none smtp.client-ip=45.254.49.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ucloud.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucloud.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucloud.cn header.i=@ucloud.cn header.b="aAqjcE9b" Received: from yuangap.. (unknown [106.75.220.2]) by smtp.qiye.163.com (Hmail) with ESMTP id 1af1378a7; Wed, 3 Jun 2026 14:54:13 +0800 (GMT+08:00) From: "yuan.gao" To: David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "yuan.gao" Subject: [PATCH net] inet: frags: remove redundant assignment in inet_frag_reasm_prepare() Date: Wed, 3 Jun 2026 14:53:23 +0800 Message-Id: <20260603065323.2736839-1-yuan.gao@ucloud.cn> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a9e8c42dde20229kunmd0e242ac27f6d0 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJQjdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkZTB1PVk1OGU5LHUNNTk9NTlYVFA kWGhdVGRETFhoSFyQUDg9ZV1kYEgtZQVlKS01VTE5VSUlLVUlZV1kWGg8SFR0UWUFZT0tIVUpLSU 9PT0hVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=aAqjcE9b2RtgBRYrZeWK7KI+Q0ec+9y3ctph0zJnwT9hpO/bPKrmuHfrqFpA9LVK+KsWRCk+8/Likd5MbUGjhYh/UWh1I1jIbZFrlEAt5mPwpaWRqvRs+6pdMlSK0KiNTQ0pqYz9nkDlcNzw2L8EorMHWYdg0Al/t/b13bJlEwE=; s=default; c=relaxed/relaxed; d=ucloud.cn; v=1; bh=D4L5GolW8rHJvUx3aHc7MJIiUhRzbf8ezE0ovYk9o2I=; h=date:mime-version:subject:message-id:from; Content-Type: text/plain; charset="utf-8" The assignment is redundant because skb_clone() already copies skb->cb. Remove the unnecessary code. Signed-off-by: yuan.gao --- net/ipv4/inet_fragment.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c index 496308c02..6119b660a 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -473,7 +473,6 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q= , struct sk_buff *skb, head =3D skb; goto out_restore_sk; } - FRAG_CB(fp)->next_frag =3D FRAG_CB(skb)->next_frag; if (RB_EMPTY_NODE(&skb->rbnode)) FRAG_CB(parent)->next_frag =3D fp; else @@ -488,7 +487,6 @@ void *inet_frag_reasm_prepare(struct inet_frag_queue *q= , struct sk_buff *skb, skb->destructor =3D NULL; } skb_morph(skb, head); - FRAG_CB(skb)->next_frag =3D FRAG_CB(head)->next_frag; rb_replace_node(&head->rbnode, &skb->rbnode, &q->rb_fragments); consume_skb(head); --=20 2.32.0