]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/lock: Clean up trailing whitespace
authorVMware, Inc <>
Mon, 15 Oct 2012 04:52:51 +0000 (21:52 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Fri, 19 Oct 2012 18:32:41 +0000 (11:32 -0700)
Trivial elimination of trailing whitespace.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/lock/ul.c
open-vm-tools/lib/lock/ulInt.h
open-vm-tools/lib/lock/ulRW.c
open-vm-tools/lib/lock/ulSema.c
open-vm-tools/lib/lock/ulStats.c

index b4593732a670d363d2ab0d5712a4f2498c7a6871..1477e3d6131332be945b0750de318951b4152cd2 100644 (file)
@@ -292,7 +292,7 @@ MXUserDumpAndPanic(MXUserHeader *header,  // IN:
 
 /*
  *---------------------------------------------------------------------
- * 
+ *
  *  MXUser_SetInPanic --
  *     Notify the locking system that a panic is occurring.
  *
@@ -317,7 +317,7 @@ MXUser_SetInPanic(void)
 
 /*
  *---------------------------------------------------------------------
- * 
+ *
  *  MXUser_InPanic --
  *     Is the caller in the midst of a panic?
  *
@@ -757,7 +757,7 @@ MXUserAcquisitionTracking(MXUserHeader *header,  // IN:
        *
        * Recursive locks are rank checked only upon their first acquisition...
        * just like MX locks.
-       * 
+       *
        * Exclusive locks will have a second entry added into the tracking
        * system but will immediately panic due to the run time checking - no
        * (real) harm done.
index d72559c63940f525c299c45168f475ddb5e324a8..00d1b7a4d750131398bd9f15a66809227f119836 100644 (file)
@@ -575,7 +575,7 @@ MXUserBasicStatsSetUp(MXUserBasicStats *stats,
 void
 MXUserBasicStatsSample(MXUserBasicStats *stats,
                        uint64 value);
+
 void MXUserDumpBasicStats(MXUserBasicStats *stats,
                           MXUserHeader *header);
 
index a46859435a51d876c28159018bf6efe2f261cecc..64075f918ee9b7e4c1a39a75f6f0d7c1b60abf43 100644 (file)
@@ -920,24 +920,24 @@ MXUser_AcquireForWrite(MXUserRWLock *lock)  // IN/OUT:
 }
 
 
-/*      
+/*
  *-----------------------------------------------------------------------------
- *      
+ *
  * MXUser_IsCurThreadHolding --
  *
  *      Is the read-write lock held in the mode queried?
- *      
+ *
  * Results:
  *      TRUE   Yes
  *      FALSE  No
  *
  * Side effects:
  *      None
- *      
+ *
  *-----------------------------------------------------------------------------
- */     
-        
-Bool    
+ */
+
+Bool
 MXUser_IsCurThreadHoldingRWLock(MXUserRWLock *lock,  // IN:
                                 uint32 queryType)    // IN:
 {
@@ -951,16 +951,16 @@ MXUser_IsCurThreadHoldingRWLock(MXUserRWLock *lock,  // IN:
    switch (queryType) {
    case MXUSER_RW_FOR_READ:
       return myContext->state == RW_LOCKED_FOR_READ;
-        
+
    case MXUSER_RW_FOR_WRITE:
       return myContext->state == RW_LOCKED_FOR_WRITE;
-        
+
    case MXUSER_RW_LOCKED:
       return myContext->state != RW_UNLOCKED;
 
    default:
       Panic("%s: unknown query type %d\n", __FUNCTION__, queryType);
-   }    
+   }
 }
 
 
index d1f2b5970bccf825cd173929111b15c136892c1f..42ea42d74f3e237b9ef9a73d908bb16fdfe9e5c2 100644 (file)
@@ -124,7 +124,7 @@ MXUserTimedDown(NativeSemaphore *sema,  // IN:
 
     status = WaitForSingleObject(*sema, msecWait);
 
-    switch (status) { 
+    switch (status) {
        case WAIT_OBJECT_0:  // The down (decrement) occurred
           *downOccurred = TRUE;
           err = 0;
@@ -828,7 +828,7 @@ MXUser_TryDownSemaphore(MXUserSemaphore *sema)  // IN/OUT:
  * MXUser_UpSemaphore --
  *
  *      Perform an up (V; verhogen; "increase") operation on a semaphore.
- * 
+ *
  * Results:
  *      The semaphore count is incremented. Any thread waiting on the
  *      semaphore is awoken.
index f3bb892f9bc673d74df90e2571f70362eb942a3a..69a8f1ba2da83d1271625666f14d967ec7031b48 100644 (file)
@@ -156,7 +156,7 @@ MXUserHistoIndex(uint64 value)  // IN:
       uint32 numerator = 0;
       uint32 denominator = 0;
 
-      LogFixed_Base10(value, &numerator, &denominator); 
+      LogFixed_Base10(value, &numerator, &denominator);
 
       index = (BINS_PER_DECADE * numerator) / denominator;
    }