Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37f15291 authored by George Cherian's avatar George Cherian Committed by Wim Van Sebroeck
Browse files

watchdog: lantiq_wdt: Remove the un-necessary check of resource after platform_get_resource()



devm_ioremap_resource() checks for valid resource.
Remove the un-necessary check after platform_get_resource().

Signed-off-by: default avatarGeorge Cherian <george.cherian@ti.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 4bba08dd
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);