tile-module: Rename jump labels in module_alloc()

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>
This commit is contained in:
Markus Elfring 2016-09-03 20:45:20 +02:00 коммит произвёл Chris Metcalf
Родитель 8797fe75f1
Коммит 8e36f722f7
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

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