]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: remove unneeded return value of bio_check_ro()
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 5 Sep 2022 10:27:54 +0000 (18:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:29 +0000 (11:08 +0100)
commitb80148710983d05edb2d9a6066e19f480a2971ab
tree65d8724a52c7e8f6633a887e2375202fd6dc9c31
parentd8d94d6b3bd300f4116b11b9bad2190c1a793125
block: remove unneeded return value of bio_check_ro()

[ Upstream commit bdb7d420c6f6d2618d4c907cd7742c3195c425e2 ]

bio_check_ro() always return false now. Remove this unneeded return value
and cleanup the sole caller. No functional change intended.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Link: https://lore.kernel.org/r/20220905102754.1942-1-linmiaohe@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 1b0a151c10a6 ("blk-core: use pr_warn_ratelimited() in bio_check_ro()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-core.c