提交 11d83225 编写于 作者: L liuxianliang 提交者: guo

[remove] useless variable.

上级 cd72ef6e
...@@ -852,7 +852,6 @@ int timer_gettime(timer_t timerid, struct itimerspec *its) ...@@ -852,7 +852,6 @@ int timer_gettime(timer_t timerid, struct itimerspec *its)
struct timer_obj *timer = (struct timer_obj *)timerid; struct timer_obj *timer = (struct timer_obj *)timerid;
rt_tick_t remaining; rt_tick_t remaining;
rt_uint32_t seconds, nanoseconds; rt_uint32_t seconds, nanoseconds;
rt_int64_t nsecs, secs;
if (timer == NULL) if (timer == NULL)
{ {
...@@ -918,7 +917,6 @@ int timer_settime(timer_t timerid, int flags, const struct itimerspec *value, ...@@ -918,7 +917,6 @@ int timer_settime(timer_t timerid, int flags, const struct itimerspec *value,
struct itimerspec *ovalue) struct itimerspec *ovalue)
{ {
struct timer_obj *timer = (struct timer_obj *)timerid; struct timer_obj *timer = (struct timer_obj *)timerid;
rt_uint32_t duration, current;
if (timer == NULL || if (timer == NULL ||
value->it_interval.tv_nsec < 0 || value->it_interval.tv_nsec < 0 ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册