mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
9616bd2a66
commit
3b72c41f13
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue