Skip to content

Commit 52a90a7

Browse files
committed
bench: fix unused bindings
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent 6adab4a commit 52a90a7

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

bench/xs_bench.ml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313
*)
1414

1515
open Lwt
16-
open Xs_protocol
1716
module Client = Xs_client_lwt.Client (Xs_transport_lwt_unix_client)
1817
open Client
1918

20-
let ( |> ) a b = b a
21-
2219
(* So we can run against a real xenstore, place all nodes in a subtree *)
2320
let prefix = "/bench"
2421

@@ -49,7 +46,7 @@ module Device = struct
4946
| "vfs" -> Some Vfs
5047
| "vfb" -> Some Vfb
5148
| "vkbd" -> Some Vkbd
52-
| x -> None
49+
| _ -> None
5350

5451
let string_of_kind = function
5552
| Vif -> "vif"
@@ -171,12 +168,6 @@ module Device = struct
171168
(* The private data path is only used by xapi and ignored by frontend and backend *)
172169
let get_private_path domid = Printf.sprintf "%s/%d" private_path domid
173170

174-
let get_private_data_path_of_device (x : device) =
175-
Printf.sprintf "%s/private/%s/%d"
176-
(get_private_path x.frontend.domid)
177-
(string_of_kind x.backend.kind)
178-
x.backend.devid
179-
180171
(* Path in xenstore where we stuff our transient hotplug-related stuff *)
181172
let get_hotplug_path (x : device) =
182173
Printf.sprintf "%s/hotplug/%s/%d"
@@ -404,8 +395,8 @@ let vm_shutdown domid client =
404395
let vm_start domid client =
405396
let vbd devid =
406397
{
407-
Device.frontend = { Device.domid; kind = Device.Vbd; devid = 0 };
408-
backend = { Device.domid = 0; kind = Device.Vbd; devid = 0 };
398+
Device.frontend = { Device.domid; kind = Device.Vbd; devid };
399+
backend = { Device.domid = 0; kind = Device.Vbd; devid };
409400
}
410401
in
411402
Domain.make domid client >>= fun () ->
@@ -486,7 +477,7 @@ let main () =
486477
(match path with
487478
| Some path -> Xs_transport.xenstored_socket := path
488479
| None -> ());
489-
let n, args = extract args "-n" in
480+
let n, _ = extract args "-n" in
490481
let n = match n with None -> 300 | Some n -> int_of_string n in
491482

492483
make () >>= fun client ->

0 commit comments

Comments
 (0)