]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Remove now-unused HVMOP
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 22 Aug 2017 09:33:01 +0000 (10:33 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 22 Aug 2017 09:47:45 +0000 (10:47 +0100)
The previous patch removed the only call-site for HvmGetTime(). This patch
removes the function now that it is no longer used.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
include/xen.h
src/xen/hvm.c

index 05cf8ec736e858bd0e13d39513c684a647bb8fa5..e7956f0c18afbb8c5740325b646000e2515fcdc2 100644 (file)
@@ -100,13 +100,6 @@ HvmGetParam(
     OUT PULONGLONG  Value
     );
 
-__checkReturn
-XEN_API
-NTSTATUS
-HvmGetTime(
-    OUT PLARGE_INTEGER  Now
-    );
-
 __checkReturn
 XEN_API
 NTSTATUS
index aeaedadca8893a4722d3afa53bb09c64c655ed0b..6badbf87b0461751be55774dbbe1d9fcb41f491d 100644 (file)
@@ -112,34 +112,6 @@ fail1:
     return status;
 }
 
-__checkReturn
-XEN_API
-NTSTATUS
-HvmGetTime(
-    OUT PLARGE_INTEGER      Now
-    )
-{
-    struct xen_hvm_get_time op;
-    LONG_PTR                rc;
-    NTSTATUS                status;
-
-    rc = HvmOp(HVMOP_get_time, &op);
-    
-    if (rc < 0) {
-        ERRNO_TO_STATUS(-rc, status);
-        goto fail1;
-    }
-
-    Now->QuadPart = op.now;
-
-    return STATUS_SUCCESS;
-
-fail1:
-    Error("fail1 (%08x)\n", status);
-
-    return status;
-}
-
 __checkReturn
 XEN_API
 NTSTATUS