[ofw] [PATCH] remove useless variable initialization

Smith, Stan stan.smith at intel.com
Tue Aug 31 10:07:45 PDT 2010


Remove useless variable initialization.

signed-off-by: stan smith (stan.smith at intel.com)

--- a/inc/kernel/shutter.h      Tue Aug 31 10:03:12 2010
+++ b/inc/kernel/shutter.h      Tue Aug 31 09:53:34 2010
@@ -51,7 +51,7 @@

 static inline void shutter_sub(shutter_t * p_shutter,long Val)
 {
-    long res = 0;
+    long res;
     ASSERT(Val < 0);
        res = InterlockedExchangeAdd( &p_shutter->cnt,Val );
        if ((res+Val) == -MAX_OPERATIONS)
@@ -61,7 +61,7 @@
 // if RC == true, one can proceed
 static inline BOOLEAN shutter_add(shutter_t * p_shutter,long Val)
 {
-    long res = 0;
+    long res;
     ASSERT(Val > 0);
        res = InterlockedExchangeAdd(&p_shutter->cnt,Val);
        ASSERT(res <= MAX_OPERATIONS);
@@ -93,7 +93,7 @@

 static inline void shutter_shut(shutter_t * p_shutter)
 {
-    long res = 0;
+    long res;
     //
     //  ASSERT not calling shu twice.
     //



More information about the ofw mailing list