summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorzylx <[email protected]>2018-12-13 09:59:07 +0800
committerzylx <[email protected]>2018-12-13 10:00:03 +0800
commit6ea32ee488c8b76202d6707515dfff8cc2b28e4b (patch)
tree2555d3ce1af86f0cf9fb3db48296e2c049ed534a /components/drivers
parentf497b17111f955dbce988bd9925ea8312a542d93 (diff)
[components][drivers] delete redundant judgment
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/hwtimer/hwtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/hwtimer/hwtimer.c b/components/drivers/hwtimer/hwtimer.c
index aafa465b1e..cd85b3baef 100644
--- a/components/drivers/hwtimer/hwtimer.c
+++ b/components/drivers/hwtimer/hwtimer.c
@@ -37,7 +37,7 @@ rt_inline rt_uint32_t timeout_calc(rt_hwtimer_t *timer, rt_hwtimerval_t *tv)
{
timeout = tv_sec/i;
- if (timeout <= overflow && timeout * timer->freq <= timer->info->maxcnt)
+ if (timeout <= overflow)
{
counter = timeout*timer->freq;
devi = tv_sec - (counter/(float)timer->freq)*i;