summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2015-12-21 15:12:20 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 21:32:57 -0800
commit1b807e1011af46a595ba46c75ad5e20ad7177af7 (patch)
treed0db61ca35aaf98c17d64bb46282a181050c7063 /drivers/hv/hv.c
parent5fae054c2b5a7c10475d2e425dfea0c567c1c5dd (diff)
downloadlinux-stable-1b807e1011af46a595ba46c75ad5e20ad7177af7.tar.gz
linux-stable-1b807e1011af46a595ba46c75ad5e20ad7177af7.tar.bz2
linux-stable-1b807e1011af46a595ba46c75ad5e20ad7177af7.zip
Drivers: hv: vmbus: Cleanup vmbus_set_event()
Cleanup vmbus_set_event() by inlining the hypercall to post the event and since the return value of vmbus_set_event() is not checked, make it void. As part of this cleanup, get rid of the function hv_signal_event() as it is only callled from vmbus_set_event(). Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv.c')
-rw-r--r--drivers/hv/hv.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
index 11bca51ef5ff..1c677d0f16d6 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -337,22 +337,6 @@ int hv_post_message(union hv_connection_id connection_id,
return status & 0xFFFF;
}
-
-/*
- * hv_signal_event -
- * Signal an event on the specified connection using the hypervisor event IPC.
- *
- * This involves a hypercall.
- */
-int hv_signal_event(void *con_id)
-{
- u64 status;
-
- status = hv_do_hypercall(HVCALL_SIGNAL_EVENT, con_id, NULL);
-
- return status & 0xFFFF;
-}
-
static int hv_ce_set_next_event(unsigned long delta,
struct clock_event_device *evt)
{