From 6ec56f51cd5fc5870298ad68aca946495a422c27 Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 9 Jan 2007 08:57:19 +0000 Subject: [PATCH] Remove excess parentheses. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@733 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/timer.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drv/timer.h b/drv/timer.h index 1c361fff..5c1d9001 100755 --- a/drv/timer.h +++ b/drv/timer.h @@ -15,6 +15,9 @@ /*#* *#* $Log$ + *#* Revision 1.32 2007/01/09 08:57:19 bernie + *#* Remove excess parentheses. + *#* *#* Revision 1.31 2006/07/19 12:56:26 bernie *#* Convert to new Doxygen style. *#* @@ -222,9 +225,9 @@ INLINE utime_t ticks_to_us(ticks_t ticks) INLINE hptime_t us_to_hptime(utime_t us) { #if TIMER_HW_HPTICKS_PER_SEC > 10000000UL - return(us * ((TIMER_HW_HPTICKS_PER_SEC + 500000UL) / 1000000UL)); + return us * ((TIMER_HW_HPTICKS_PER_SEC + 500000UL) / 1000000UL); #else - return((us * TIMER_HW_HPTICKS_PER_SEC + 500000UL) / 1000000UL); + return (us * TIMER_HW_HPTICKS_PER_SEC + 500000UL) / 1000000UL; #endif } @@ -232,9 +235,9 @@ INLINE hptime_t us_to_hptime(utime_t us) INLINE utime_t hptime_to_us(hptime_t hpticks) { #if TIMER_HW_HPTICKS_PER_SEC < 100000UL - return(hpticks * (1000000UL / TIMER_HW_HPTICKS_PER_SEC)); + return hpticks * (1000000UL / TIMER_HW_HPTICKS_PER_SEC); #else - return((hpticks * 1000000UL) / TIMER_HW_HPTICKS_PER_SEC); + return (hpticks * 1000000UL) / TIMER_HW_HPTICKS_PER_SEC; #endif /* TIMER_HW_HPTICKS_PER_SEC < 100000UL */ } -- 2.25.1