mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
arm/lpc32xx/rtc/rtc-config.c: Fix compilation error
There was an argument and parameter with the same name.
This commit is contained in:
1 parent
63fa5b5c55
commit
993c1a1d9b
1 file changed
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user