From 61cee50c86e275f9fde875bd317c3e74255394ec Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 22 Apr 2009 15:53:55 -0700 Subject: [PATCH] simplify ao_time function --- ao_timer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ao_timer.c b/ao_timer.c index 716befe6..eee5a6d4 100644 --- a/ao_timer.c +++ b/ao_timer.c @@ -19,13 +19,9 @@ static volatile __data uint16_t ao_tick_count; -uint16_t ao_time(void) +uint16_t ao_time(void) __critical { - uint16_t ret; - __critical { - ret = ao_tick_count; - } - return ret; + return ao_tick_count; } void -- 2.30.2