These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / watchdog / ks8695_wdt.c
index b7ea39b..1e41818 100644 (file)
@@ -254,13 +254,10 @@ static int ks8695wdt_probe(struct platform_device *pdev)
 
 static int ks8695wdt_remove(struct platform_device *pdev)
 {
-       int res;
-
-       res = misc_deregister(&ks8695wdt_miscdev);
-       if (!res)
-               ks8695wdt_miscdev.parent = NULL;
+       misc_deregister(&ks8695wdt_miscdev);
+       ks8695wdt_miscdev.parent = NULL;
 
-       return res;
+       return 0;
 }
 
 static void ks8695wdt_shutdown(struct platform_device *pdev)