drivers/rtc/rtc-stmp3xxx.c: check the return value from stmp_reset_block()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 8 Jul 2013 23:00:45 +0000 (16:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:25 +0000 (10:33 -0700)
commit4e80b1880c5a31d051d1e4a7377dec0a20701c23
tree56c3d5d93ac4d4dfc84a06723ef214a93480b9e8
parent2417898b34ad3fbf2f31771c97ba87792bf97f0c
drivers/rtc/rtc-stmp3xxx.c: check the return value from stmp_reset_block()

stmp_reset_block() may fail, so let's check its return value and
propagate it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-stmp3xxx.c