]> git.baikalelectronics.ru Git - kernel.git/commit
block: cleanup __alloc_disk_node
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Aug 2020 18:02:37 +0000 (20:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Sep 2020 22:49:26 +0000 (16:49 -0600)
commit6d4b57453f7f73addf3df6076f2ca03409593a78
tree57c223290e91a1a1ce08ced496fcf9a6a0672839
parent05c8961a1067fdf1f7ae38629f46ae37e0fc1225
block: cleanup __alloc_disk_node

Use early returns and goto-based unwinding to simplify the flow a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c