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 7/7] ACPI-APEI-HEST: Rename jump labels in hest_parse_ghes()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Mon, 5 Sep 2016 21:56:02 +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 | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c
    index 0e629c0..d5b75fe 100644
    --- a/drivers/acpi/apei/hest.c
    +++ b/drivers/acpi/apei/hest.c
    @@ -167,15 +167,15 @@ static int __init hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data)

    rc = platform_device_add_data(ghes_dev, &hest_hdr, sizeof(void *));
    if (rc)
    - goto err;
    + goto put_device;

    rc = platform_device_add(ghes_dev);
    if (rc)
    - goto err;
    + goto put_device;
    ghes_arr->ghes_devs[ghes_arr->count++] = ghes_dev;

    return 0;
    -err:
    + put_device:
    platform_device_put(ghes_dev);
    return rc;
    }
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-17 09:58    [W:3.847 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site