[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c76d5fa4-da07-19b3-3087-f47ec53eee29@users.sourceforge.net>
Date: Sat, 10 Sep 2016 16:27:34 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: kernel-janitors@...r.kernel.org,
Miguel Ojeda Sandonis <miguel.ojeda.sandonis@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 3/7] cfag12864b: Return directly if the driver "ks0108" was
not initialized
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 10 Sep 2016 15:15:10 +0200
* Return directly if the LCD controller driver was not initialized
at the beginning.
* Omit an explicit variable initialisation which became unnecessary with
this refactoring.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/auxdisplay/cfag12864b.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/auxdisplay/cfag12864b.c b/drivers/auxdisplay/cfag12864b.c
index fd07fad..921e177 100644
--- a/drivers/auxdisplay/cfag12864b.c
+++ b/drivers/auxdisplay/cfag12864b.c
@@ -329,13 +329,13 @@ EXPORT_SYMBOL_GPL(cfag12864b_isinited);
static int __init cfag12864b_init(void)
{
- int ret = -EINVAL;
+ int ret;
/* ks0108_init() must be called first */
if (!ks0108_isinited()) {
printk(KERN_ERR CFAG12864B_NAME ": ERROR: "
"ks0108 is not initialized\n");
- goto none;
+ return -EINVAL;
}
BUILD_BUG_ON(PAGE_SIZE < CFAG12864B_SIZE);
--
2.10.0
Powered by blists - more mailing lists