summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-06 15:35:16 +0100
committerGuenter Roeck <linux@roeck-us.net>2017-02-24 23:00:23 +0100
commit3b72c41f13e64e4799cb0978d46eb06575456f26 (patch)
tree2246113b098d4b2270bd602b8932ef78aaae9f07 /drivers
parentwatchdog: iTCO_wdt: Simplify module init function (diff)
downloadlinux-3b72c41f13e64e4799cb0978d46eb06575456f26.tar.xz
linux-3b72c41f13e64e4799cb0978d46eb06575456f26.zip
watchdog: bcm47xx_wdt: Don't validate platform data on remove
Platform data was already validated in the probe function. If it was NULL, the remove function will never be called. Remove the unnecessary check. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/bcm47xx_wdt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c
index a1900b9ab6c4..35725e21b18a 100644
--- a/drivers/watchdog/bcm47xx_wdt.c
+++ b/drivers/watchdog/bcm47xx_wdt.c
@@ -226,9 +226,6 @@ static int bcm47xx_wdt_remove(struct platform_device *pdev)
{
struct bcm47xx_wdt *wdt = dev_get_platdata(&pdev->dev);
- if (!wdt)
- return -ENXIO;
-
watchdog_unregister_device(&wdt->wdd);
return 0;