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

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.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4be8a2ea
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);

	/*