From 68d39b69aa1c81054ee9b7165fa9f9eb34fb847e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 15 Feb 2015 08:51:39 -0600 Subject: [PATCH] Remove an unused variable --- arch/arm/src/stm32/stm32_rtc_lowerhalf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/stm32_rtc_lowerhalf.c b/arch/arm/src/stm32/stm32_rtc_lowerhalf.c index 75ab3295378..7d85d2d9d7b 100644 --- a/arch/arm/src/stm32/stm32_rtc_lowerhalf.c +++ b/arch/arm/src/stm32/stm32_rtc_lowerhalf.c @@ -233,13 +233,12 @@ static int stm32_settime(FAR struct rtc_lowerhalf_s *lower, #else struct timespec ts; - int ret; /* Convert the struct rtc_time to a time_t. Here we assume that struct * rtc_time is cast compatible with struct tm. */ - ts.tv_sec = mktime((FAR const struct tm *)rtctime) + ts.tv_sec = mktime((FAR const struct tm *)rtctime) ts.tv_nsec = 0; /* Now set the time (to one second accuracy) */