netfs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/netfs/read_collect: remove duplicate line
@ 2025-04-28 11:48 Max Kellermann
  2025-04-28 13:36 ` Paulo Alcantara
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Max Kellermann @ 2025-04-28 11:48 UTC (permalink / raw)
  To: dhowells, netfs, linux-kernel; +Cc: Max Kellermann

The `ret` variable has already been assigned before the `switch`
block.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Fixes: e2d46f2ec332 ("netfs: Change the read result collector to only use one work item")
---
 fs/netfs/read_collect.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/netfs/read_collect.c b/fs/netfs/read_collect.c
index 23c75755ad4e..422bfac47817 100644
--- a/fs/netfs/read_collect.c
+++ b/fs/netfs/read_collect.c
@@ -653,7 +653,6 @@ ssize_t netfs_wait_for_read(struct netfs_io_request *rreq)
 		switch (rreq->origin) {
 		case NETFS_DIO_READ:
 		case NETFS_READ_SINGLE:
-			ret = rreq->transferred;
 			break;
 		default:
 			if (rreq->submitted < rreq->len) {
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-28 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28 11:48 [PATCH] fs/netfs/read_collect: remove duplicate line Max Kellermann
2025-04-28 13:36 ` Paulo Alcantara
     [not found] ` <notmuch-sha1-fe1ebcd5fc23eab1dc1cf15f4369d4b0ea567ded>
2025-04-28 13:38   ` Paulo Alcantara
2025-04-28 15:41 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).