]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bcache: remove dead code in detached_dev_do_request
authorShida Zhang <zhangshida@kylinos.cn>
Tue, 27 Jan 2026 08:21:11 +0000 (16:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Jan 2026 02:06:55 +0000 (19:06 -0700)
commit6ea84d7a92cb0b30aaf7d2066a69e28e27932332
treed5f39b194322eb541ad0585a0b38aab72bf0f48f
parent45614d8cd1e813c6ccfae80582c9a0073209ef3e
bcache: remove dead code in detached_dev_do_request

bio_alloc_clone() with GFP_NOIO and a mempool will not return NULL.
Remove the unnecessary NULL check.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c