From: George Cherian Date: Tue, 10 Jun 2014 04:40:06 +0000 (+0530) Subject: watchdog: dw_wdt: Remove the un-necessary check after platform_get_resource() X-Git-Tag: v4.14-rc1~7084^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bba08dda402172727c14d8e363a3dda38293548;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c index ee4f86b..9f21029 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) int ret; struct resource *mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!mem) - return -EINVAL; - dw_wdt.regs = devm_ioremap_resource(&pdev->dev, mem); if (IS_ERR(dw_wdt.regs)) return PTR_ERR(dw_wdt.regs);