[PATCH 5/7] cfag12864b: Rename jump labels in cfag12864b_init()

From: SF Markus Elfring
Date: Sat Sep 10 2016 - 10:29:43 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Sep 2016 15:35:02 +0200

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

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/auxdisplay/cfag12864b.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/auxdisplay/cfag12864b.c b/drivers/auxdisplay/cfag12864b.c
index 2fa149b..b471b28 100644
--- a/drivers/auxdisplay/cfag12864b.c
+++ b/drivers/auxdisplay/cfag12864b.c
@@ -351,23 +351,21 @@ static int __init cfag12864b_init(void)
GFP_KERNEL);
if (cfag12864b_cache == NULL) {
ret = -ENOMEM;
- goto bufferalloced;
+ goto free_buffer;
}

cfag12864b_workqueue = create_singlethread_workqueue(CFAG12864B_NAME);
if (cfag12864b_workqueue == NULL)
- goto cachealloced;
+ goto free_cache;

cfag12864b_clear();
cfag12864b_on();

cfag12864b_inited = 1;
return 0;
-
-cachealloced:
+ free_cache:
kfree(cfag12864b_cache);
-
-bufferalloced:
+ free_buffer:
free_page((unsigned long) cfag12864b_buffer);
return ret;
}
--
2.10.0