Skip to content
Commit bedf78c4 authored by Sun Ke's avatar Sun Ke Committed by Jens Axboe
Browse files

nbd: share nbd_put and return by goto put_nbd



Replace the following two statements by the statement “goto put_nbd;”

	nbd_put(nbd);
	return 0;

Signed-off-by: default avatarSun Ke <sunke32@huawei.com>
Suggested-by: default avatarMarkus Elfring <Markus.Elfring@web.de>
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20210512114331.1233964-3-sunke32@huawei.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 79ebe911
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment