]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-max77686.c: fix incorrect return value on error
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 26 Mar 2013 23:25:47 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:52 +0000 (17:12 +1100)
commitfd3dc13dcbbf2aa2f40b904ed27a5954cba3778b
treeb6a9da03b651623988734875ce9fb8307e472d9e
parentd29cae9e08fbd0d2ef0c4191bc9e21a278fdcec9
drivers/rtc/rtc-max77686.c: fix incorrect return value on error

'ret' was not initialized to error code before returning. While
at it also remove some redundant code and cleanup.

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