Skip to content

Commit

Permalink
watchdog: ts72xx_wdt: Kill superfluous variable in remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mika Westerberg authored and Wim Van Sebroeck committed Oct 20, 2014
1 parent 62ce254 commit 1f897a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/watchdog/ts72xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,7 @@ static int ts72xx_wdt_probe(struct platform_device *pdev)

static int ts72xx_wdt_remove(struct platform_device *pdev)
{
int error;

error = misc_deregister(&ts72xx_wdt_miscdev);

return error;
return misc_deregister(&ts72xx_wdt_miscdev);
}

static struct platform_driver ts72xx_wdt_driver = {
Expand Down

0 comments on commit 1f897a8

Please sign in to comment.