Commit aae32ec6 authored by Markus Elfring's avatar Markus Elfring Committed by Vinod Koul

ste_dma40: Rename a jump label in d40_lcla_allocate()

Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 2c7f2f20
...@@ -3431,7 +3431,7 @@ static int __init d40_lcla_allocate(struct d40_base *base) ...@@ -3431,7 +3431,7 @@ static int __init d40_lcla_allocate(struct d40_base *base)
for (j = 0; j < i; j++) for (j = 0; j < i; j++)
free_pages(page_list[j], base->lcla_pool.pages); free_pages(page_list[j], base->lcla_pool.pages);
goto failure; goto free_page_list;
} }
if ((virt_to_phys((void *)page_list[i]) & if ((virt_to_phys((void *)page_list[i]) &
...@@ -3458,7 +3458,7 @@ static int __init d40_lcla_allocate(struct d40_base *base) ...@@ -3458,7 +3458,7 @@ static int __init d40_lcla_allocate(struct d40_base *base)
GFP_KERNEL); GFP_KERNEL);
if (!base->lcla_pool.base_unaligned) { if (!base->lcla_pool.base_unaligned) {
ret = -ENOMEM; ret = -ENOMEM;
goto failure; goto free_page_list;
} }
base->lcla_pool.base = PTR_ALIGN(base->lcla_pool.base_unaligned, base->lcla_pool.base = PTR_ALIGN(base->lcla_pool.base_unaligned,
...@@ -3471,12 +3471,12 @@ static int __init d40_lcla_allocate(struct d40_base *base) ...@@ -3471,12 +3471,12 @@ static int __init d40_lcla_allocate(struct d40_base *base)
if (dma_mapping_error(base->dev, pool->dma_addr)) { if (dma_mapping_error(base->dev, pool->dma_addr)) {
pool->dma_addr = 0; pool->dma_addr = 0;
ret = -ENOMEM; ret = -ENOMEM;
goto failure; goto free_page_list;
} }
writel(virt_to_phys(base->lcla_pool.base), writel(virt_to_phys(base->lcla_pool.base),
base->virtbase + D40_DREG_LCLA); base->virtbase + D40_DREG_LCLA);
failure: free_page_list:
kfree(page_list); kfree(page_list);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment