|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 1/3] Fix EvtchnSend functions to match prototypes
The method prototypes in the XENBUS_EVTCHN interface void, so the
implementations should be void functions.
Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
src/xenbus/evtchn.c | 21 +++++----------------
1 file changed, 5 insertions(+), 16 deletions(-)
diff --git a/src/xenbus/evtchn.c b/src/xenbus/evtchn.c
index f9f95c9..af96341 100644
--- a/src/xenbus/evtchn.c
+++ b/src/xenbus/evtchn.c
@@ -792,44 +792,33 @@ EvtchnUnmaskVersion1(
return FALSE;
}
-static NTSTATUS
+static VOID
EvtchnSend(
IN PINTERFACE Interface,
IN PXENBUS_EVTCHN_CHANNEL Channel
)
{
- NTSTATUS status;
-
UNREFERENCED_PARAMETER(Interface);
ASSERT3U(Channel->Magic, ==, XENBUS_EVTCHN_CHANNEL_MAGIC);
ASSERT3U(KeGetCurrentIrql(), >=, DISPATCH_LEVEL);
- status = STATUS_UNSUCCESSFUL;
- if (!Channel->Active)
- goto done;
-
- status = EventChannelSend(Channel->LocalPort);
-
-done:
- return status;
+ if (Channel->Active)
+ (VOID) EventChannelSend(Channel->LocalPort);
}
-static NTSTATUS
+static VOID
EvtchnSendVersion1(
IN PINTERFACE Interface,
IN PXENBUS_EVTCHN_CHANNEL Channel
)
{
KIRQL Irql;
- NTSTATUS status;
KeRaiseIrql(DISPATCH_LEVEL, &Irql);
- status = EvtchnSend(Interface, Channel);
+ EvtchnSend(Interface, Channel);
KeLowerIrql(Irql);
-
- return status;
}
static VOID
--
2.5.3
_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |