mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 22:53:01 +00:00
Remove an unused variable
This commit is contained in:
parent
726b0d5f58
commit
68d39b69aa
1 changed files with 1 additions and 2 deletions
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue