summaryrefslogtreecommitdiff
path: root/fs/pipe.c
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2023-09-19 09:40:44 +0200
committerChristian Brauner <brauner@kernel.org>2023-09-20 14:22:01 +0200
commitae81711c1edd769b7d9952dde40a579dceca4815 (patch)
treee42cd7439f84da4509d46e116cb367f5d52ef219 /fs/pipe.c
parentbe049c3a088d512187407b7fd036cecfab46d565 (diff)
fs/pipe: remove duplicate "offset" initializer
This code duplication was introduced by commit a194dfe6e6f6 ("pipe: Rearrange sequence in pipe_write() to preallocate slot"), but since the pipe's mutex is locked, nobody else can modify the value meanwhile. Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Message-Id: <20230919074045.1066796-1-max.kellermann@ionos.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/pipe.c')
-rw-r--r--fs/pipe.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/pipe.c b/fs/pipe.c
index 6c1a9b1db907..139190165a1c 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -537,7 +537,6 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
break;
}
ret += copied;
- buf->offset = 0;
buf->len = copied;
if (!iov_iter_count(from))