Staging: hv: vmbus: Get rid of the function dump_gpadl_body()
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 25 Aug 2011 16:48:53 +0000 (09:48 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 22:22:19 +0000 (15:22 -0700)
Get rid of the function dump_gpadl_body() since it adds no value and actually is
in the data path.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/channel.c

index 222adcc24c71d26f2fe34b83238017320ff50281..2d5bfacf9e1927826ffbf04e366832be8f8fb994 100644 (file)
@@ -239,24 +239,6 @@ errorout:
 }
 EXPORT_SYMBOL_GPL(vmbus_open);
 
-/*
- * dump_gpadl_body - Dump the gpadl body message to the console for
- * debugging purposes.
- */
-static void dump_gpadl_body(struct vmbus_channel_gpadl_body *gpadl, u32 len)
-{
-       int i;
-       int pfncount;
-
-       pfncount = (len - sizeof(struct vmbus_channel_gpadl_body)) /
-                  sizeof(u64);
-
-       DPRINT_DBG(VMBUS, "gpadl body - len %d pfn count %d", len, pfncount);
-
-       for (i = 0; i < pfncount; i++)
-               DPRINT_DBG(VMBUS, "gpadl body  - %d) pfn %llu",
-                          i, gpadl->pfn[i]);
-}
 
 /*
  * dump_gpadl_header - Dump the gpadl header message to the console for
@@ -485,8 +467,6 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,
                                CHANNELMSG_GPADL_BODY;
                        gpadl_body->gpadl = next_gpadl_handle;
 
-                       dump_gpadl_body(gpadl_body, submsginfo->msgsize -
-                                     sizeof(*submsginfo));
                        ret = vmbus_post_msg(gpadl_body,
                                               submsginfo->msgsize -
                                               sizeof(*submsginfo));