[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1341764625-2728-1-git-send-email-devendra.aaru@gmail.com>
Date: Sun, 8 Jul 2012 21:53:45 +0530
From: Devendra Naga <devendra.aaru@...il.com>
To: Wim Van Sebroeck <wim@...ana.be>, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Devendra Naga <devendra.aaru@...il.com>
Subject: [PATCH] geodewdt: do a little cleanup at probe
at probe with out ret var, simple return misc_register was sufficient.
Signed-off-by: Devendra Naga <devendra.aaru@...il.com>
---
drivers/watchdog/geodewdt.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/watchdog/geodewdt.c b/drivers/watchdog/geodewdt.c
index dc563b6..df825b5 100644
--- a/drivers/watchdog/geodewdt.c
+++ b/drivers/watchdog/geodewdt.c
@@ -217,8 +217,6 @@ static struct miscdevice geodewdt_miscdev = {
static int __devinit geodewdt_probe(struct platform_device *dev)
{
- int ret;
-
wdt_timer = cs5535_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING);
if (!wdt_timer) {
pr_err("No timers were available\n");
@@ -238,9 +236,7 @@ static int __devinit geodewdt_probe(struct platform_device *dev)
cs5535_mfgpt_write(wdt_timer, MFGPT_REG_CMP2,
timeout * GEODEWDT_HZ);
- ret = misc_register(&geodewdt_miscdev);
-
- return ret;
+ return misc_register(&geodewdt_miscdev);
}
static int __devexit geodewdt_remove(struct platform_device *dev)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists