]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mpage: convert do_mpage_readpage() to return void type
authorChi Zhiling <chizhiling@kylinos.cn>
Fri, 29 Aug 2025 02:36:59 +0000 (10:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:16 +0000 (14:22 -0700)
commit8583bb0f9a7ed744a376ad4f1647efc240927a5a
treedd54846a1d2332bcf35273c68e5f6165c5bbe289
parentf6d8c7102049f76027bf584eef3300d4bddc6462
mpage: convert do_mpage_readpage() to return void type

The return value of do_mpage_readpage() is arg->bio, which is already set
in the arg structure.  Returning it again is redundant.

This patch changes the return type to void since the caller doesn't care
about the return value.

Link: https://lkml.kernel.org/r/20250829023659.688649-2-chizhiling@163.com
Signed-off-by: Chi Zhiling <chizhiling@kylinos.cn>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Sungjong Seo <sj1557.seo@samsung.com>
Cc: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/mpage.c