]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/lock: fix indenting
authorVMware, Inc <>
Mon, 21 Nov 2011 23:16:50 +0000 (15:16 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 21 Nov 2011 23:16:50 +0000 (15:16 -0800)
it was hard to catch but some of the code was indented a bit off.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ul.c

index 59d68a48800bbec9f8c9ab467c4a75efecc8482f..bbbed5638ea064e7624a65c670b0c36323847863 100644 (file)
@@ -122,32 +122,32 @@ MXUserSyndrome(void)
    syndrome = Atomic_Read(&syndromeMem);
 
    if (syndrome == 0) {
-       void *token;
+      void *token;
 
-       /*
-        * It is extremely rare for malloc/calloc to be diverted into multiple
-        * heaps or to fail in our environment - one heap per program; addresses
-        * must be unique. Attempt a small allocation and use its address for
-        * the syndrome bits.
-        *
-        * This is an intentional "leak" albeit only once per program (or
-        * copy of MXUser).
-        */
+      /*
+       * It is extremely rare for malloc/calloc to be diverted into multiple
+       * heaps or to fail in our environment - one heap per program; addresses
+       * must be unique. Attempt a small allocation and use its address for
+       * the syndrome bits.
+       *
+       * This is an intentional "leak" albeit only once per program (or
+       * copy of MXUser).
+       */
 
-       token = malloc(4);
+      token = malloc(4);
 
-       syndrome = ((uintptr_t) token) & 0xFFFFFFFF;
+      syndrome = ((uintptr_t) token) & 0xFFFFFFFF;
 
-       if (UNLIKELY(syndrome == 0)) {
-          syndrome++;  // live with the exceedingly rare outcome
-       }
+      if (UNLIKELY(syndrome == 0)) {
+         syndrome++;  // live with the exceedingly rare outcome
+      }
 
-       if (Atomic_ReadIfEqualWrite(&syndromeMem, 0, syndrome)) {
-          free(token);
-       }
+      if (Atomic_ReadIfEqualWrite(&syndromeMem, 0, syndrome)) {
+         free(token);
+      }
 
-       syndrome = Atomic_Read(&syndromeMem);
-       ASSERT(syndrome);
+      syndrome = Atomic_Read(&syndromeMem);
+      ASSERT(syndrome);
    }
 
    return syndrome;