aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2014-06-10 00:40:06 -0400
committerWim Van Sebroeck <wim@iguana.be>2014-08-05 16:42:18 -0400
commit4bba08dda402172727c14d8e363a3dda38293548 (patch)
treed1c2d2e28505fda5055209d99c934fbadc4286ff /drivers/watchdog
parentc489d98c8c81a898cfed6bec193cca2006f956aa (diff)
watchdog: dw_wdt: Remove the un-necessary check after platform_get_resource()
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/dw_wdt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c
index ee4f86ba83ec..9f210299de24 100644
--- a/drivers/watchdog/dw_wdt.c
+++ b/drivers/watchdog/dw_wdt.c
@@ -296,9 +296,6 @@ static int dw_wdt_drv_probe(struct platform_device *pdev)
296 int ret; 296 int ret;
297 struct resource *mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 297 struct resource *mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
298 298
299 if (!mem)
300 return -EINVAL;
301
302 dw_wdt.regs = devm_ioremap_resource(&pdev->dev, mem); 299 dw_wdt.regs = devm_ioremap_resource(&pdev->dev, mem);
303 if (IS_ERR(dw_wdt.regs)) 300 if (IS_ERR(dw_wdt.regs))
304 return PTR_ERR(dw_wdt.regs); 301 return PTR_ERR(dw_wdt.regs);