From 08cb201dccc43d16a5d0c739d35774f2bfb44d4d Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 8 Jan 2020 09:46:27 +0100 Subject: [PATCH] vz: Don't try to jump on a non-existent label in prlsdkRemoveBootDevices() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Commit v5.10.0-522-g9000b2f298 was too aggressive and removed the 'error' label from prlsdkRemoveBootDevices() even though it's used. Luckily, it's used only from one place and we have an alternative for it that doesn't require the label. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- src/vz/vz_sdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index 473719dcfe..32e0046763 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -2725,7 +2725,7 @@ prlsdkRemoveBootDevices(PRL_HANDLE sdkdom) PRL_DEVICE_TYPE devType; pret = PrlVmCfg_GetBootDevCount(sdkdom, &devCount); - prlsdkCheckRetGoto(pret, error); + prlsdkCheckRetExit(pret, -1); for (i = 0; i < devCount; i++) { -- 2.47.2