From nobody Wed Oct 8 05:46:28 2025 Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) (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 C594A2820A0; Wed, 2 Jul 2025 13:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.226.149.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751463530; cv=none; b=IyOfix887Wuyj7t0oM+qAiXFcwLLaRIE2+CNpLrNW/emdhq4jBISOINWa/lNxwwYB5ieXb1uzR4VgBnnibnUIzDc4BFuwAMpzvpChmTELGdPDyBhHJ7+F8ilp4YA3annpo77cq8WVXjaSDZulnyDOtHlYpQr3ojcZUUU+JtVtIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751463530; c=relaxed/simple; bh=8R94xR6ywX8zi8DpzNLXc8nXc/KWdO8qaX7Bl2FN4Tw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uVEBC06/9Sswg6lPL1bd8PJ8S8VZjjdgtzqUkGQJUOr5abUYMuG7Ubm/mFQJisIv5B59dQDIED1UiomwpA/tGQcjQe8o4JVCp2rcr20+ASBkYwr8zzWNoYd02WPH47/DpPB+knNoGJXCaZBH6OAgnxIpyi0Hl9bnnYiIe75xyOk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co; spf=pass smtp.mailfrom=rbox.co; dkim=pass (2048-bit key) header.d=rbox.co header.i=@rbox.co header.b=ocbLthwZ; arc=none smtp.client-ip=185.226.149.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rbox.co Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rbox.co header.i=@rbox.co header.b="ocbLthwZ" Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1uWxfV-00GxOr-Ik; Wed, 02 Jul 2025 15:38:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rbox.co; s=selector2; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From; bh=0+sqAtVYy6ujOD9J5/0Ld0QUGlNJqgikFRG6V5SJvFU=; b=ocbLthwZ3WvAfsAoRevTvAq6Om eU6JCUy9lWbirNXAxK/XS4XK62scLwzv3GIemA9z7tqDZLzmGc4e7aHbymeoaFulG3b5hTwUynM6t Qh4ukIW9Mx8o+/h7VSPuT1fKtIa78kICyTF+EF/IwqKonR3OFxGDmCJ2TyaJT2Kcp1XIqBTuien2p Nwny/S+/S8TKHUG8J8UGnaPMgZZ+w40jEZQumGCPIZdWO68tN6rE3hjKLw5Of9kZktd6NSmGmMmqt ey//7BNg3TIx2ACBS6YEJ5ZgFWunnk5jJQC7F3wJwOa0v+R/WiGaV1fcuPSBukGhFr9vI4jAP7k0n on7yb4bA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1uWxfV-0006Ef-2W; Wed, 02 Jul 2025 15:38:33 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (604044)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1uWxfG-009LCR-1h; Wed, 02 Jul 2025 15:38:18 +0200 From: Michal Luczaj Date: Wed, 02 Jul 2025 15:38:10 +0200 Subject: [PATCH net-next v3 4/6] net/smc: Drop nr_pages_max initialization Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250702-splice-drop-unused-v3-4-55f68b60d2b7@rbox.co> References: <20250702-splice-drop-unused-v3-0-55f68b60d2b7@rbox.co> In-Reply-To: <20250702-splice-drop-unused-v3-0-55f68b60d2b7@rbox.co> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Ayush Sawal , Andrew Lunn , David Ahern , Neal Cardwell , Kuniyuki Iwashima , Wenjia Zhang , Jan Karcher , "D. Wythe" , Tony Lu , Wen Gu Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, Michal Luczaj , Sidraya Jayagond , Dust Li X-Mailer: b4 0.14.2 splice_pipe_desc::nr_pages_max was initialized unnecessarily in commit b8d199451c99 ("net/smc: Allow virtually contiguous sndbufs or RMBs for SMC-R"). Struct's field is unused in this context. Remove the assignment. No functional change intended. Suggested-by: Simon Horman Reviewed-by: Sidraya Jayagond Reviewed-by: Dust Li Reviewed-by: Simon Horman Signed-off-by: Michal Luczaj --- net/smc/smc_rx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/smc/smc_rx.c b/net/smc/smc_rx.c index e7f1134453ef40dd81a9574d6df4ead95acd8ae5..bbba5d4dc7eb0dbb31a9800023b= 0caab33e87842 100644 --- a/net/smc/smc_rx.c +++ b/net/smc/smc_rx.c @@ -202,7 +202,6 @@ static int smc_rx_splice(struct pipe_inode_info *pipe, = char *src, size_t len, offset =3D 0; } } - spd.nr_pages_max =3D nr_pages; spd.nr_pages =3D nr_pages; spd.pages =3D pages; spd.partial =3D partial; --=20 2.49.0