[PATCH 07/21] ACPI-video: Rename jump labels in acpi_video_bus_add()

From: SF Markus Elfring
Date: Mon Sep 05 2016 - 12:54:06 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Sep 2016 15:01:23 +0200

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

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/acpi/acpi_video.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
index 0fca196..8003c90 100644
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -1983,14 +1983,14 @@ static int acpi_video_bus_add(struct acpi_device *device)
acpi_video_bus_find_cap(video);
error = acpi_video_bus_check(video);
if (error)
- goto err_free_video;
+ goto free_video;

mutex_init(&video->device_list_lock);
INIT_LIST_HEAD(&video->video_device_list);

error = acpi_video_bus_get_devices(video, device);
if (error)
- goto err_put_video;
+ goto put_devices;

printk(KERN_INFO PREFIX "%s [%s] (multi-head: %s rom: %s post: %s)\n",
ACPI_VIDEO_DEVICE_NAME, acpi_device_bid(device),
@@ -2005,11 +2005,10 @@ static int acpi_video_bus_add(struct acpi_device *device)
acpi_video_bus_add_notify_handler(video);

return 0;
-
-err_put_video:
+ put_devices:
acpi_video_bus_put_devices(video);
kfree(video->attached_array);
-err_free_video:
+ free_video:
kfree(video);
device->driver_data = NULL;

--
2.10.0