Setting errno to a negative value makes no sense.
Signed-off-by: Juergen Gross <[email protected]>
---
tools/libs/light/libxl_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/libs/light/libxl_linux.c b/tools/libs/light/libxl_linux.c
index 8d62dfd255..27f2bce718 100644
--- a/tools/libs/light/libxl_linux.c
+++ b/tools/libs/light/libxl_linux.c
@@ -288,7 +288,7 @@ int libxl__pci_topology_init(libxl__gc *gc,
if (i == num_devs) {
LOG(ERROR, "Too many devices");
err = ERROR_FAIL;
- errno = -ENOSPC;
+ errno = ENOSPC;
goto out;
}
--
2.34.1