]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Get rid of ASSERT_LENGTH.
authorVMware, Inc <>
Wed, 18 Sep 2013 03:40:51 +0000 (20:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:30:00 +0000 (22:30 -0700)
It was used way back in ancient times in the binary translator
but today no more uses remain. So let us remove this global

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/include/vm_assert.h

index 619050a0151cbe06c892de32dc2fc6118392b220..be8c6d4204748f584a0cdca216e0f62db51043c8 100644 (file)
@@ -315,9 +315,6 @@ do {                                                        \
 #undef  ASSERT_BUG_DEBUGONLY
 #define ASSERT_BUG_DEBUGONLY(bug, cond) ((void) 0)
 
-#undef  ASSERT_LENGTH
-#define ASSERT_LENGTH(real, expected) ((void) 0)
-
 /*
  * Expand NOT_REACHED() as appropriate for each situation.
  *
@@ -400,8 +397,8 @@ do {                                                        \
  */
 
 #define MY_ASSERTS(name, assertions) \
-   static INLINE void name(void) { \
-      assertions \
+   static INLINE void name(void) {   \
+      assertions                     \
    }
 
 #ifdef __cplusplus