]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: cleanup decide_on_discard_support
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:38 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commitfd989542155c887826161f9106a4dc5eb8f0dc49
treec70ccaf653c0e9cf2e579f32ebb68e2c4e17ae3a
parentc98e5531774a3f56b55cb2f92cae0537e44bf671
drbd: cleanup decide_on_discard_support

Sanitize the calling conventions and use a goto label to cleanup the
code flow.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20220415045258.199825-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_nl.c