Staging: hv: remove vmbus_on_event_dpc()
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Dec 2010 20:12:46 +0000 (12:12 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Dec 2010 20:12:46 +0000 (12:12 -0800)
Just call VmbusOnEvents() as that's all the function did, so we can
remove it.

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

index f623b57c59d0c64f4cf2476150a6460b4c0b33db..d794b603bf17e8feb347b9e3a5dbfa7839014696 100644 (file)
@@ -250,15 +250,6 @@ static void vmbus_on_msg_dpc(struct hv_driver *drv)
        }
 }
 
-/*
- * vmbus_on_event_dpc - DPC routine to handle events from the hypervisior
- */
-static void vmbus_on_event_dpc(struct hv_driver *drv)
-{
-       /* TODO: Process any events */
-       VmbusOnEvents();
-}
-
 /*
  * vmbus_on_isr - ISR routine
  */
@@ -1039,10 +1030,8 @@ static void vmbus_msg_dpc(unsigned long data)
  */
 static void vmbus_event_dpc(unsigned long data)
 {
-       struct hv_driver *driver = (struct hv_driver *)data;
-
        /* Call to bus driver to handle interrupt */
-       vmbus_on_event_dpc(driver);
+       VmbusOnEvents();
 }
 
 static irqreturn_t vmbus_isr(int irq, void *dev_id)