]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-tps65910.c: fix incorrect return value on error
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 29 Apr 2013 23:20:10 +0000 (16:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:33 +0000 (18:28 -0700)
commitb8f26ad4f783d438bbd119ab4e1b791ee8e4d5c5
treef7c15021e8cf39c6c6d7bcd6de681b29d06e6032
parent8e9d42e0971b12548ed7287d9b6c9af0d707f9e0
drivers/rtc/rtc-tps65910.c: fix incorrect return value on error

'ret' was not initialized to correct error value before returning.
Since 'irq' is also being tested for 0, we cannot return irq itself as
it means function is success even though we are returning before
completing the probe.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Cc: Chiwoong Byun <woong.byun@samsung.com>
Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
Cc: Laxman dewangan <ldewangan@nvidia.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-tps65910.c