Skip to content
Commit 6fce7105 authored by Yang Bai's avatar Yang Bai Committed by Will Deacon
Browse files

kvm tools: unite the error handle in kvm__init



When error occurs, just set the ret to the reason,
then jump to the error handle labels.
This makes the code more readable.

Signed-off-by: default avatarYang Bai <hamo.by@gmail.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 9150d571
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment