blk-cgroup: consolidate error handling in blkcg_init_queue
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Nov 2018 16:02:12 +0000 (17:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Nov 2018 19:13:26 +0000 (12:13 -0700)
commit04be60b5e4e03fd3d58f7f25b782240a45272fb0
tree8d3aef64ac6cdfbe5971460c07c5fcebcf59b227
parentb6676f653f13f83582985bc713525a48d735b2a3
blk-cgroup: consolidate error handling in blkcg_init_queue

Use a goto label to merge two identical pieces of error handling code.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c