arm/lpc32xx/rtc/rtc-config.c: Fix compilation error

There was an argument and parameter with the same name.
This commit is contained in:
Joel Sherrill
2026-03-29 12:48:02 -05:00
parent 63fa5b5c55
commit 993c1a1d9b
+3 -3
View File
@@ -131,16 +131,16 @@ static int lpc32xx_rtc_set_time(int minor, const rtems_time_of_day *tod)
{
(void) minor;
time_t tod_time_t;
uint32 tod;
uint32_t tod_for_device;
tod_time_t = _TOD_To_seconds(tod);
if (tod_time_t > UINT32_MAX) {
return -1;
}
tod = tod_time_t;
tod_for_device = tod_time_t;
lpc32xx_rtc_set(tod);
lpc32xx_rtc_set(tod_for_device);
return 0;
}