From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Thu, 1 Sep 2016 18:10:21 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- arch/s390/kernel/debug.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 5bb9108..0af14a4 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c @@ -198,33 +198,32 @@ debug_areas_alloc(int pages_per_area, int nr_areas) areas = kmalloc_array(nr_areas, sizeof(*areas), GFP_KERNEL); if (!areas) - goto fail_malloc_areas; + goto exit; for (i = 0; i < nr_areas; i++) { areas[i] = kmalloc_array(pages_per_area, sizeof(*areas[i]), GFP_KERNEL); if (!areas[i]) - goto fail_malloc_areas2; + goto free_areas; for (j = 0; j < pages_per_area; j++) { areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL); if (!areas[i][j]) { for (j--; j >= 0; j--) kfree(areas[i][j]); kfree(areas[i]); - goto fail_malloc_areas2; + goto free_areas; } } } return areas; - -fail_malloc_areas2: + free_areas: for (i--; i >= 0; i--) { for (j = 0; j < pages_per_area; j++) kfree(areas[i][j]); kfree(areas[i]); } kfree(areas); -fail_malloc_areas: + exit: return NULL; } -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html