commands/hwclock: Check return value of rtc_read_time()
It is possible for rtc_read_time() to fill struct rtc_time it returns
with invalid values, so we have to check for its return value before
using returned time.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 645320b commit 4c9b2e72057ca3d1578b33ff75ad251bb8225a9c
@Andrey Smirnov Andrey Smirnov authored on 7 Jan 2016
Sascha Hauer committed on 7 Jan 2016
Showing 1 changed file
View
commands/hwclock.c