mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
fs/pipe: remove duplicate "offset" initializer
This code duplication was introduced by commit a194dfe6e6
("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>
This commit is contained in:
parent
be049c3a08
commit
ae81711c1e
1 changed files with 0 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue