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 4/7] ACPI-APEI-HEST: Rename jump labels in hest_ghes_dev_register()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    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
    \
     
     \ /
      Last update: 2016-09-17 09:58    [W:4.019 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site