]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fs/pipe: remove duplicate "offset" initializer
authorMax Kellermann <max.kellermann@ionos.com>
Tue, 19 Sep 2023 07:40:44 +0000 (09:40 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 20 Sep 2023 12:22:01 +0000 (14:22 +0200)
commitae81711c1edd769b7d9952dde40a579dceca4815
treee42cd7439f84da4509d46e116cb367f5d52ef219
parentbe049c3a088d512187407b7fd036cecfab46d565
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>
fs/pipe.c