at probe with out ret var, simple return misc_register was sufficient.

Signed-off-by: Devendra Naga <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to