Remove useless variable initialization.
signed-off-by: stan smith ([email protected])
--- 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.
//
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw