lkml.org 
[lkml]   [2016]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 11/21] ACPI-video: Rename jump labels in acpi_video_bus_add_notify_handler()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Mon, 5 Sep 2016 15:50:12 +0200

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

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    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 6c871dd..fe9b40e 100644
    --- a/drivers/acpi/acpi_video.c
    +++ b/drivers/acpi/acpi_video.c
    @@ -1857,7 +1857,7 @@ static int acpi_video_bus_add_notify_handler(struct acpi_video_bus *video)

    error = acpi_video_bus_start_devices(video);
    if (error)
    - goto err_free_input;
    + goto free_device;

    snprintf(video->phys, sizeof(video->phys),
    "%s/video/input0", acpi_device_hid(video->device));
    @@ -1879,7 +1879,7 @@ static int acpi_video_bus_add_notify_handler(struct acpi_video_bus *video)

    error = input_register_device(input);
    if (error)
    - goto err_stop_dev;
    + goto stop_devices;

    mutex_lock(&video->device_list_lock);
    list_for_each_entry(dev, &video->video_device_list, entry)
    @@ -1887,10 +1887,9 @@ static int acpi_video_bus_add_notify_handler(struct acpi_video_bus *video)
    mutex_unlock(&video->device_list_lock);

    return 0;
    -
    -err_stop_dev:
    + stop_devices:
    acpi_video_bus_stop_devices(video);
    -err_free_input:
    + free_device:
    input_free_device(input);
    video->input = NULL;
    return error;
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-17 09:58    [W:4.021 / U:0.904 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site