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

'ret' was being returned without initializing it to error code.  While at
it also remove duplicate return statement.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
Cc: Chiwoong Byun <woong.byun@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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-max8997.c