]> www.infradead.org Git - users/hch/block.git/commit
block-cgroup: remove blkg_lookup_check
authorChristoph Hellwig <hch@lst.de>
Wed, 29 Jun 2022 09:07:21 +0000 (11:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 11 Sep 2022 06:07:15 +0000 (08:07 +0200)
commitc9bd1ee6a46d41c6b9843fcc6f494c7eb98660ec
tree9a4173ec924da06a904ee7382978bb7fa541e9ed
parent383761e06a86a108bf0223e48cced33368ab51ce
block-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>
block/blk-cgroup.c