lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 25 Feb 2022 19:54:30 +0100 From: Max Kellermann <max.kellermann@...il.com> To: viro@...iv.linux.org.uk, linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org Cc: Max Kellermann <max.kellermann@...il.com> Subject: [PATCH 3/4] fs/pipe: remove unnecessary "buf" initializer This one has no effect because this value is not used before it is assigned again. To: Alexander Viro <viro@...iv.linux.org.uk> To: linux-fsdevel@...r.kernel.org To: linux-kernel@...r.kernel.org Signed-off-by: Max Kellermann <max.kellermann@...il.com> --- fs/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pipe.c b/fs/pipe.c index aca717a89631..b2075ecd4751 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -487,7 +487,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from) head = pipe->head; if (!pipe_full(head, pipe->tail, pipe->max_usage)) { unsigned int mask = pipe->ring_size - 1; - struct pipe_buffer *buf = &pipe->bufs[head & mask]; + struct pipe_buffer *buf; struct page *page = pipe->tmp_page; int copied; -- 2.34.0
Powered by blists - more mailing lists