Arnd Bergmann b7dcc4eacc clocksource/drivers: Fix uninitialized variable use in timer_of_init
If none of the flags are set, 'ret' is uninitialized as pointed out
by gcc:

drivers/clocksource/timer-of.c: In function 'timer_of_init':
drivers/clocksource/timer-of.c:160:9: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Since calling the function without any of the flags is an error,
set the return value to -EINVAL for that case.

[ tglx: Get rid of the silly backwards goto while at it ]

Fixes: dc11bae78529 ("clocksource/drivers: Add timer-of common init routine")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/20170621215005.3870011-1-arnd@arndb.de
2017-06-22 00:04:26 +02:00
..
2017-06-15 01:52:32 +02:00
2017-05-04 19:15:35 -07:00
2017-06-16 17:38:23 +09:00
2017-06-13 15:09:10 +09:00
2017-06-01 14:49:47 -04:00
2017-06-18 08:51:35 +09:00
2017-05-05 19:33:07 -07:00
2017-06-15 17:37:40 +09:00
2017-04-27 11:54:49 +01:00
2017-06-11 11:29:15 -07:00
2017-06-14 23:45:22 -04:00
2017-04-17 00:42:22 +02:00
2017-04-20 09:54:24 +02:00
2017-05-09 10:01:15 -07:00
2017-06-16 17:30:44 +09:00
2017-05-04 19:15:35 -07:00
2017-06-11 11:21:08 -07:00
2017-06-18 08:36:30 +09:00
2017-05-18 23:54:47 -07:00
2017-06-04 10:23:25 +02:00
2017-06-18 08:39:54 +09:00
2017-05-05 11:36:44 -07:00
2017-06-09 09:59:51 -07:00