watchdog: lantiq_wdt: Remove the un-necessary check of resource after platform_get_re...
authorGeorge Cherian <george.cherian@ti.com>
Tue, 10 Jun 2014 04:40:07 +0000 (10:10 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 5 Aug 2014 20:42:27 +0000 (22:42 +0200)
devm_ioremap_resource() checks for valid resource.
Remove the un-necessary check after platform_get_resource().

Signed-off-by: George Cherian <george.cherian@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/lantiq_wdt.c

index 3b3148c764a3853c9076d9e14a804f92fdea8347..021e84eb88ebf6aee35bcbefee1261518878500e 100644 (file)
@@ -192,11 +192,6 @@ ltq_wdt_probe(struct platform_device *pdev)
        struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        struct clk *clk;
 
-       if (!res) {
-               dev_err(&pdev->dev, "cannot obtain I/O memory region");
-               return -ENOENT;
-       }
-
        ltq_wdt_membase = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(ltq_wdt_membase))
                return PTR_ERR(ltq_wdt_membase);