watchdog: coh901327_wdt: Simplify error handling in probe function
authorGuenter Roeck <linux@roeck-us.net>
Tue, 3 Jan 2017 11:22:09 +0000 (03:22 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
commit01372ae13ba6a4792de2f4bd474f1374b5404448
treec3f304133ef07b8bd74e127fb42a08293bd7dcac
parent0397c5db1d3174a553da674bb779007cc62cc241
watchdog: coh901327_wdt: Simplify error handling in probe function

Checking if there is no error followed by a goto if there is one is
confusing. Reverse the logic.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/coh901327_wdt.c