Commit 8a20c0c7 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: remove the NULL ioc check in put_io_context

No caller passes in a NULL pointer, so remove the check.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20211209063131.18537-5-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4be8a2ea
......@@ -155,9 +155,6 @@ void put_io_context(struct io_context *ioc)
unsigned long flags;
bool free_ioc = false;
if (ioc == NULL)
return;
BUG_ON(atomic_long_read(&ioc->refcount) <= 0);
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment