diff options
author | Greg Kroah-Hartman | 2009-08-19 00:21:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-09-15 21:01:56 +0200 |
commit | aded7165f262e0f018b23a6cd5cba6e33fd6efd1 (patch) | |
tree | eb478d33d460715f3a1af7d64096ac8fcfc79153 /drivers/staging/hv/Connection.c | |
parent | Staging: hv: clean up typedefs in Hv.h (diff) | |
download | kernel-qcow2-linux-aded7165f262e0f018b23a6cd5cba6e33fd6efd1.tar.gz kernel-qcow2-linux-aded7165f262e0f018b23a6cd5cba6e33fd6efd1.tar.xz kernel-qcow2-linux-aded7165f262e0f018b23a6cd5cba6e33fd6efd1.zip |
Staging: hv: clean up typedefs in ChannelMgmt.h
This removes the typedefs from ChannelMgmt.h, it's now clean from a
codingstyle.pl standpoint.
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/Connection.c')
-rw-r--r-- | drivers/staging/hv/Connection.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c index 01aa669006ae..6b726894b31b 100644 --- a/drivers/staging/hv/Connection.c +++ b/drivers/staging/hv/Connection.c @@ -49,7 +49,7 @@ Description: int VmbusConnect(void) { int ret=0; - VMBUS_CHANNEL_MSGINFO *msgInfo=NULL; + struct vmbus_channel_msginfo *msgInfo = NULL; VMBUS_CHANNEL_INITIATE_CONTACT *msg; unsigned long flags; @@ -99,7 +99,7 @@ int VmbusConnect(void) goto Cleanup; } - msgInfo = kzalloc(sizeof(VMBUS_CHANNEL_MSGINFO) + sizeof(VMBUS_CHANNEL_INITIATE_CONTACT), GFP_KERNEL); + msgInfo = kzalloc(sizeof(*msgInfo) + sizeof(VMBUS_CHANNEL_INITIATE_CONTACT), GFP_KERNEL); if (msgInfo == NULL) { ret = -1; @@ -257,10 +257,10 @@ Description: Get the channel object given its child relative id (ie channel id) --*/ -VMBUS_CHANNEL *GetChannelFromRelId(u32 relId) +struct vmbus_channel *GetChannelFromRelId(u32 relId) { - VMBUS_CHANNEL* channel; - VMBUS_CHANNEL* foundChannel=NULL; + struct vmbus_channel *channel; + struct vmbus_channel *foundChannel = NULL; LIST_ENTRY* anchor; LIST_ENTRY* curr; unsigned long flags; @@ -268,7 +268,7 @@ VMBUS_CHANNEL *GetChannelFromRelId(u32 relId) spin_lock_irqsave(&gVmbusConnection.channel_lock, flags); ITERATE_LIST_ENTRIES(anchor, curr, &gVmbusConnection.ChannelList) { - channel = CONTAINING_RECORD(curr, VMBUS_CHANNEL, ListEntry); + channel = CONTAINING_RECORD(curr, struct vmbus_channel, ListEntry); if (channel->OfferMsg.ChildRelId == relId) { @@ -297,7 +297,7 @@ VmbusProcessChannelEvent( void * context ) { - VMBUS_CHANNEL* channel; + struct vmbus_channel *channel; u32 relId = (u32)(unsigned long)context; ASSERT(relId > 0); |