Skip to content

Commit 11d8322

Browse files
liuxianliangGuozhanxin
authored andcommitted
[remove] useless variable.
1 parent cd72ef6 commit 11d8322

File tree

1 file changed

+0
-2
lines changed
  • components/libc/compilers/common

1 file changed

+0
-2
lines changed

components/libc/compilers/common/time.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,6 @@ int timer_gettime(timer_t timerid, struct itimerspec *its)
852852
struct timer_obj *timer = (struct timer_obj *)timerid;
853853
rt_tick_t remaining;
854854
rt_uint32_t seconds, nanoseconds;
855-
rt_int64_t nsecs, secs;
856855

857856
if (timer == NULL)
858857
{
@@ -918,7 +917,6 @@ int timer_settime(timer_t timerid, int flags, const struct itimerspec *value,
918917
struct itimerspec *ovalue)
919918
{
920919
struct timer_obj *timer = (struct timer_obj *)timerid;
921-
rt_uint32_t duration, current;
922920

923921
if (timer == NULL ||
924922
value->it_interval.tv_nsec < 0 ||

0 commit comments

Comments
 (0)