watchdog: ts72xx_wdt: Kill superfluous variable in remove

There is no need to store the return value of misc_deregister() in a
variable. Instead we can just return the value directly.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
Mika Westerberg 2014-08-19 14:57:12 +03:00 committed by Wim Van Sebroeck
parent 62ce25439a
commit 1f897a8191

View File

@ -428,11 +428,7 @@ static int ts72xx_wdt_probe(struct platform_device *pdev)
static int ts72xx_wdt_remove(struct platform_device *pdev) static int ts72xx_wdt_remove(struct platform_device *pdev)
{ {
int error; return misc_deregister(&ts72xx_wdt_miscdev);
error = misc_deregister(&ts72xx_wdt_miscdev);
return error;
} }
static struct platform_driver ts72xx_wdt_driver = { static struct platform_driver ts72xx_wdt_driver = {