[PATCH 4/7] ACPI-APEI-HEST: Rename jump labels in hest_ghes_dev_register()

SF Markus Elfring
2016-09-05T20:20:21Z

Date: Mon, 5 Sep 2016 21:22:55 +0200

Adjust jump labels according to the current Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/acpi/apei/hest.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c
index 26f5e78..03dd7d3 100644
--- a/drivers/acpi/apei/hest.c
+++ b/drivers/acpi/apei/hest.c
@@ -194,14 +194,14 @@ static int __init hest_ghes_dev_register(unsigned int ghes_count)
ghes_arr.count = 0;
rc = apei_hest_parse(hest_parse_ghes, &ghes_arr);
if (rc)
- goto err;
-out:
+ goto unregister;
+ free_array:
kfree(ghes_arr.ghes_devs);
return rc;
-err:
+ unregister:
for (i = 0; i < ghes_arr.count; i++)
platform_device_unregister(ghes_arr.ghes_devs[i]);
- goto out;
+ goto free_array;
}

static int __init setup_hest_disable(char *str)
--
2.10.0