Commit 1f765540 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: remove FIELD_OFFSET usage

This isn't needed, or even used, at all.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4e9bfefa
...@@ -98,15 +98,6 @@ typedef struct ...@@ -98,15 +98,6 @@ typedef struct
#pragma pack(pop) #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; typedef u32 GPADL_HANDLE;
// //
......
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
#define LOWORD(dw) ((unsigned short) (dw)) #define LOWORD(dw) ((unsigned short) (dw))
#define HIWORD(dw) ((unsigned short) (((unsigned int) (dw) >> 16) & 0xFFFF)) #define HIWORD(dw) ((unsigned short) (((unsigned int) (dw) >> 16) & 0xFFFF))
#define FIELD_OFFSET(t, f) ((unsigned int)(unsigned long)&(((t *)0)->f))
#ifdef FALSE #ifdef FALSE
#undef FALSE #undef FALSE
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment