[PATCH -next] clocksource/drivers/stm32: fix error return code in stm32_timer_init()

2018-01-10 Thread Wei Yongjun
Fix to return error code -ENOMEM from the kzalloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/clocksource/timer-stm32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH -next] clocksource/drivers/stm32: fix error return code in stm32_timer_init()

2018-01-10 Thread Wei Yongjun
Fix to return error code -ENOMEM from the kzalloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/clocksource/timer-stm32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-stm32.c