lkml.org 
[lkml]   [2016]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 03/10] firewire-net: Rename jump labels in fwnet_init()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sat, 17 Sep 2016 22:11:25 +0200

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

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

    diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
    index 89afed3..cedfade 100644
    --- a/drivers/firewire/net.c
    +++ b/drivers/firewire/net.c
    @@ -1662,14 +1662,14 @@ static int __init fwnet_init(void)
    #if IS_ENABLED(CONFIG_IPV6)
    err = fw_core_add_descriptor(&rfc3146_unit_directory);
    if (err)
    - goto out;
    + goto remove_descriptor_rfc2374;
    #endif

    fwnet_packet_task_cache = kmem_cache_create("packet_task",
    sizeof(struct fwnet_packet_task), 0, 0, NULL);
    if (!fwnet_packet_task_cache) {
    err = -ENOMEM;
    - goto out2;
    + goto remove_descriptor_rfc3146;
    }

    err = driver_register(&fwnet_driver.driver);
    @@ -1677,10 +1677,10 @@ static int __init fwnet_init(void)
    return 0;

    kmem_cache_destroy(fwnet_packet_task_cache);
    -out2:
    + remove_descriptor_rfc3146:
    #if IS_ENABLED(CONFIG_IPV6)
    fw_core_remove_descriptor(&rfc3146_unit_directory);
    -out:
    + remove_descriptor_rfc2374:
    #endif
    fw_core_remove_descriptor(&rfc2374_unit_directory);

    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-18 08:15    [W:4.031 / U:0.600 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site