Staging: hv: remove FIELD_OFFSET usage
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Jul 2009 19:46:02 +0000 (12:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:47 +0000 (12:01 -0700)
This isn't needed, or even used, at all.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/include/VmbusChannelInterface.h
drivers/staging/hv/include/osd.h

index c334b88c915001eb2144576a519161ab934fd36d..ead74f28b54f3439d12afe4e952d975ab81fdeb8 100644 (file)
@@ -98,15 +98,6 @@ typedef struct
 #pragma pack(pop)
 
 
-//
-// Verify the MAX_PIPE_USER_DEFINED_BYTES value.
-//
-//C_ASSERT(MAX_PIPE_USER_DEFINED_BYTES ==
-//         MAX_USER_DEFINED_BYTES -
-//         (FIELD_OFFSET(VMBUS_CHANNEL_OFFER, u.Pipe.UserDefined) -
-//          FIELD_OFFSET(VMBUS_CHANNEL_OFFER, u.Standard.UserDefined)));
-//
-
 typedef u32 GPADL_HANDLE;
 
 //
index 18f5233e4ffdfba56a3ec1e6984f972685fe9fe1..ba44e685bf1f36c6809290650568d294ff891fc9 100644 (file)
@@ -37,8 +37,6 @@
 #define LOWORD(dw)             ((unsigned short) (dw))
 #define HIWORD(dw)             ((unsigned short) (((unsigned int) (dw) >> 16) & 0xFFFF))
 
-#define FIELD_OFFSET(t, f)    ((unsigned int)(unsigned long)&(((t *)0)->f))
-
 #ifdef FALSE
 #undef FALSE
 #endif