diff options
author | Christoph Hellwig <hch@lst.de> | 2021-12-09 07:31:24 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-12-16 10:59:01 -0700 |
commit | 8a20c0c7e0cea7eb0c32fd6b63ff514c9ac32b8f (patch) | |
tree | 2a3eb9f48b6526fca86eec391b70ae9f0d600a52 | |
parent | 4be8a2eaff2e4473b6e8ad9a3857bc9b1e79c8ba (diff) | |
download | linux-8a20c0c7e0cea7eb0c32fd6b63ff514c9ac32b8f.tar.bz2 |
block: remove the NULL ioc check in put_io_context
No caller passes in a NULL pointer, so remove the check.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20211209063131.18537-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | block/blk-ioc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 0380e33930e3..04f3d2b0ca7d 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c @@ -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); /* |