arm/altera-cyclone-v: Fix compile error

Update #4406.
This commit is contained in:
Sebastian Huber
2021-05-17 08:04:07 +02:00
parent 73ebf9a27e
commit 98cb84ea2f

View File

@@ -353,7 +353,7 @@ static int altera_cyclone_v_ds1339_get_time(int minor, rtems_time_of_day* tod)
temp_tod.month = ds1339_get_month(&time);
temp_tod.year = ds1339_get_year(&time);
sc = _TOD_Validate(&temp_tod, TOD_ENABLE_TICKS_VALIDATION)
sc = _TOD_Validate(&temp_tod, TOD_ENABLE_TICKS_VALIDATION);
if (sc == RTEMS_SUCCESSFUL)
memcpy(tod, &temp_tod, sizeof(temp_tod));
}
@@ -736,7 +736,7 @@ static int altera_cyclone_v_m41st87_get_time(int minor, rtems_time_of_day* tod)
temp_tod.month = m41st87_get_month(&time);
temp_tod.year = m41st87_get_year(&time);
sc = _TOD_Validate(&temp_tod);
sc = _TOD_Validate(&temp_tod, TOD_ENABLE_TICKS_VALIDATION);
if (sc == RTEMS_SUCCESSFUL)
memcpy(tod, &temp_tod, sizeof(temp_tod));