projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4be8a2e
)
block: remove the NULL ioc check in put_io_context
author
Christoph Hellwig
<hch@lst.de>
Thu, 9 Dec 2021 06:31:24 +0000
(07:31 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 16 Dec 2021 17:59:01 +0000
(10:59 -0700)
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>
block/blk-ioc.c
patch
|
blob
|
history
diff --git
a/block/blk-ioc.c
b/block/blk-ioc.c
index 0380e33930e31b1df0bbbd621bd1909644a08a3c..04f3d2b0ca7db4636b42b58163de7f16e15b4129 100644
(file)
--- 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);
/*