tools/libs/light: don't set errno to a negative value
authorJuergen Gross <jgross@suse.com>
Wed, 20 Apr 2022 07:31:19 +0000 (09:31 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Apr 2022 19:39:34 +0000 (20:39 +0100)
commit2419a159fb943c24a6f2439604b9fdb1478fcd08
tree372a03d9a117023d87ef325814da97895896630e
parent438e96ab479495a932391a22e219ee62fa8c4f47
tools/libs/light: don't set errno to a negative value

Setting errno to a negative value makes no sense.

Fixes: e78e8b9bb649 ("libxl: Add interface for querying hypervisor about PCI topology")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/light/libxl_linux.c