]> xenbits.xensource.com Git - xen.git/commitdiff
tools/ocaml/xenctrl: Fix unused value warning
authorEdwin Török <edvin.torok@citrix.com>
Fri, 16 Dec 2022 18:25:16 +0000 (18:25 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Dec 2022 19:31:26 +0000 (19:31 +0000)
Fixes: 8b3c06a3e5 ("tools/ocaml/xenctrl: OCaml 5 support, fix use-after-free")
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/ocaml/libs/xc/xenctrl.ml

index 9a80ae5e284fd73621a695b853307f58c8f6081d..7442bbbfc5e0b8ef70c15f89d329cac679e079c6 100644 (file)
@@ -182,7 +182,7 @@ let get_handle () = !handle
 
 let close_handle () =
        match !handle with
-       | Some h -> handle := None
+       | Some _ -> handle := None
        | None -> ()
 
 let with_intf f =