Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4200c35d20f20948e2276553c64d0db3a5398a0c
Commit:     4200c35d20f20948e2276553c64d0db3a5398a0c
Parent:     72af70cfecbcd4198ebe8ff7634d31ed4b4675e0
Author:     Jesper Nilsson <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 18 14:31:19 2008 +0100
Committer:  Jesper Nilsson <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 11:06:30 2008 +0100

    CRIS v10: Cleanup kernel/fasttimer.c
    
    - Change C99 comment style to C89.
    - Remove superfluous SANITYCHECK macro, test FAST_TIMER_SANITY_CHECKS 
instead.
---
 arch/cris/arch-v10/kernel/fasttimer.c |   35 +++++++++++++-------------------
 1 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/arch/cris/arch-v10/kernel/fasttimer.c 
b/arch/cris/arch-v10/kernel/fasttimer.c
index c1a3a21..31ff35c 100644
--- a/arch/cris/arch-v10/kernel/fasttimer.c
+++ b/arch/cris/arch-v10/kernel/fasttimer.c
@@ -31,15 +31,12 @@
 
 #define DEBUG_LOG_INCLUDED
 #define FAST_TIMER_LOG
-//#define FAST_TIMER_TEST
+/* #define FAST_TIMER_TEST */
 
 #define FAST_TIMER_SANITY_CHECKS
 
 #ifdef FAST_TIMER_SANITY_CHECKS
-#define SANITYCHECK(x) x
 static int sanity_failed;
-#else
-#define SANITYCHECK(x)
 #endif
 
 #define D1(x)
@@ -226,23 +223,19 @@ void start_one_shot_timer(struct fast_timer *t,
   do_gettimeofday_fast(&t->tv_set);
   tmp = fast_timer_list;
 
-  SANITYCHECK({ /* Check so this is not in the list already... */
-    while (tmp != NULL)
-    {
-      if (tmp == t)
-      {
-        printk(KERN_WARNING
-               "timer name: %s data: 0x%08lX already in list!\n", name, data);
-        sanity_failed++;
-                               goto done;
-      }
-      else
-      {
-        tmp = tmp->next;
-      }
-    }
-    tmp = fast_timer_list;
-  });
+#ifdef FAST_TIMER_SANITY_CHECKS
+       /* Check so this is not in the list already... */
+       while (tmp != NULL) {
+               if (tmp == t) {
+                       printk(KERN_WARNING "timer name: %s data: "
+                               "0x%08lX already in list!\n", name, data);
+                       sanity_failed++;
+                       goto done;
+               } else
+                       tmp = tmp->next;
+       }
+       tmp = fast_timer_list;
+#endif
 
   t->delay_us = delay_us;
   t->function = function;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to