From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [185.226.149.37]) (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 0BE6F2BFC65; Thu, 26 Jun 2025 08:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.226.149.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750926874; cv=none; b=N+rMK5ON5c8I28tRkWrWgP0EPcsYehrhb4tbnJDp6p4t7y+VY+38BEETwXOqFjE57Qfvn9rjFkP3tUgkTYSxW3sL+hJfxc+xQg4iAn7dRQbRmY3y6ZPhddL2BJo6eqC0hKOf+UVTFhnvspYqSfKgIlCzObf/XboP2RieLkPHLo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750926874; c=relaxed/simple; bh=iIcOqxh36MlIjbCh3lXRjInonBMTOM+CdRCsU2ecnRE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eMjOYD/PdSK2xItDBm5jdnn1r8S3ZirDDC+CB1Vzl9DQykeItnLvUAkcH3ci6hWZ3SdT2Zp4u8u3nlLsaUomgV4+faTaqRpHmQdVTTctBoU40L+Kq6b/ZW/qPlH08X2xwm7DFeERrRLNxkJdtSUsDxdQy5tKpXMc2U2pJdggHBE= 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=l5ygA6g2; arc=none smtp.client-ip=185.226.149.37 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="l5ygA6g2" Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1uUi3y-00GFjT-DD; Thu, 26 Jun 2025 10:34:30 +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=K9csgMrzkQzumdDMFSj0XkVwfFmUy6WQ+scu2JDE5Vs=; b=l5ygA6g2+iaG9Gff8/MltMhoeN 9OdFm6h7tOcWplXvWX8e4GwssSAG89koLcqoBHJegiCw04on96Fg0uh5emvu4iWZ+JXMr7AHe2Xuv jg0dju8Jyr5KNYDn50V5eQYG3MG9gz3htTiRhloCPRfjY/s8aWYva7IjIopm4GrSpKVoxL0LhcujI VWptib+CfKO49+DbUDYWUG0Vh8LxqADOV/LtFcGTvB7z1lSIUoduFi1gwGcx1ovF+v9KyfoBuDK6F IGaG6GWvX7lvamy8LfB9Ro+EKB5ImBfAprkkCLw47bH5yfpUoFPBTeAqfottJvCIf4lg8cqWFdY8z KMjlG1dQ==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1uUi3x-0002Jy-3H; Thu, 26 Jun 2025 10:34:29 +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 1uUi3R-009Fh5-Af; Thu, 26 Jun 2025 10:33:57 +0200 From: Michal Luczaj Date: Thu, 26 Jun 2025 10:33:40 +0200 Subject: [PATCH net-next v2 7/9] net/smc: Drop nr_pages_max initialization Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250626-splice-drop-unused-v2-7-3268fac1af89@rbox.co> References: <20250626-splice-drop-unused-v2-0-3268fac1af89@rbox.co> In-Reply-To: <20250626-splice-drop-unused-v2-0-3268fac1af89@rbox.co> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Neal Cardwell , Kuniyuki Iwashima , David Ahern , Boris Pismenny , John Fastabend , Ayush Sawal , Andrew Lunn , 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 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 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..bbba5d4dc7eb0dbb31a9800023b0caab33e87842 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 = 0; } } - spd.nr_pages_max = nr_pages; spd.nr_pages = nr_pages; spd.pages = pages; spd.partial = partial; -- 2.49.0