diff options
author | Christoph Hellwig <hch@lst.de> | 2022-09-21 20:04:49 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-26 19:09:31 -0600 |
commit | f753526e327bc849c445c084d0f374e992038ae9 (patch) | |
tree | c27a5b9517059afbd651744999bf73add92fb07e /block/genhd.c | |
parent | 4a69f325aa43847e0827fbfe4b3623307b0c9baa (diff) |
blk-cgroup: remove blkg_lookup_check
The combinations of an error check with an ERR_PTR return and a lookup
with a NULL return leads to ugly handling of the return values in the
callers. Just open coding the check and the lookup is much simpler.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220921180501.1539876-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions