diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-15 12:46:02 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:47 -0700 |
commit | 1f765540f49141e5418c3101df0f7580e7b10aa7 (patch) | |
tree | 779ebbb41ba5c237cbab63c555cc0f4e7f36085b /drivers | |
parent | 4e9bfefa3c0262726607d7633cbcbec7a3f50df4 (diff) |
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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/include/VmbusChannelInterface.h | 9 | ||||
-rw-r--r-- | drivers/staging/hv/include/osd.h | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/hv/include/VmbusChannelInterface.h b/drivers/staging/hv/include/VmbusChannelInterface.h index c334b88c915..ead74f28b54 100644 --- a/drivers/staging/hv/include/VmbusChannelInterface.h +++ b/drivers/staging/hv/include/VmbusChannelInterface.h @@ -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; // diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index 18f5233e4ff..ba44e685bf1 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h @@ -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 |