watchdog: sp5100_tco: Clean up sp5100_tco_setupdevice
authorGuenter Roeck <linux@roeck-us.net>
Sun, 24 Dec 2017 21:04:10 +0000 (13:04 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 21 Jan 2018 11:56:35 +0000 (12:56 +0100)
commite189410cbef1374ec29d42b72df0d58d5c7e193c
tree22b1781ed0a8edc5643ff14ba486b22c5e7b2c11
parent23dfe140057baa165daebadf8f4600e3603e0954
watchdog: sp5100_tco: Clean up sp5100_tco_setupdevice

There are too many unnecessary goto statements in sp5100_tco_setupdevice().
Rearrange the code and limit goto statements to error handling.

Cc: Zoltán Böszörményi <zboszor@pr.hu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sp5100_tco.c