Skip to content

Commit ae81711

Browse files
MaxKellermannbrauner
authored andcommitted
fs/pipe: remove duplicate "offset" initializer
This code duplication was introduced by commit a194dfe ("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>
1 parent be049c3 commit ae81711

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/pipe.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
537537
break;
538538
}
539539
ret += copied;
540-
buf->offset = 0;
541540
buf->len = copied;
542541

543542
if (!iov_iter_count(from))

0 commit comments

Comments
 (0)