]> Git Repo - qemu.git/blobdiff - device_tree.c
intc/xilinx_intc: Don't clear level sens. IRQs without ACK
[qemu.git] / device_tree.c
index 56af24b397282bbecb14c3cb37cd21bbdf968e39..69be9da8e408c93b9fb6fb587f0871a5754949a5 100644 (file)
@@ -213,7 +213,7 @@ uint32_t qemu_devtree_get_phandle(void *fdt, const char *path)
     uint32_t r;
 
     r = fdt_get_phandle(fdt, findnode_nofail(fdt, path));
-    if (r <= 0) {
+    if (r == 0) {
         fprintf(stderr, "%s: Couldn't get phandle for %s: %s\n", __func__,
                 path, fdt_strerror(r));
         exit(1);
This page took 0.023503 seconds and 4 git commands to generate.