]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tile-module: Rename jump labels in module_alloc()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 3 Sep 2016 18:45:20 +0000 (20:45 +0200)
committerChris Metcalf <cmetcalf@mellanox.com>
Fri, 16 Dec 2016 20:32:29 +0000 (15:32 -0500)
Adjust jump labels according to the current Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
arch/tile/kernel/module.c

index dce4120f52630a7ad7d19b3b120e1ad2534a42a5..09233fbe78017f41f646366bc8af5f3d8ac33736 100644 (file)
@@ -49,23 +49,22 @@ void *module_alloc(unsigned long size)
        for (; i < npages; ++i) {
                pages[i] = alloc_page(GFP_KERNEL | __GFP_HIGHMEM);
                if (!pages[i])
-                       goto error;
+                       goto free_pages;
        }
 
        area = __get_vm_area(size, VM_ALLOC, MEM_MODULE_START, MEM_MODULE_END);
        if (!area)
-               goto error;
+               goto free_pages;
        area->nr_pages = npages;
        area->pages = pages;
 
        if (map_vm_area(area, prot_rwx, pages)) {
                vunmap(area->addr);
-               goto error;
+               goto free_pages;
        }
 
        return area->addr;
-
-error:
+ free_pages:
        while (--i >= 0)
                __free_page(pages[i]);
        kfree(pages);