tools/libs/ctrl: don't set errno to a negative value
authorJuergen Gross <jgross@suse.com>
Tue, 7 Jun 2022 12:01:03 +0000 (14:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:01:03 +0000 (14:01 +0200)
commitba62afdbc31a8cfe897191efd25ed4449d9acd94
tree4221b4a7a393a1446a1ee624df56eb4b016df673
parent13a29f3756bc4cab96c59f46c3875b483553fb8f
tools/libs/ctrl: don't set errno to a negative value

The claimed reason for setting errno to -1 is wrong. On x86
xc_domain_pod_target() will set errno to a sane value in the error
case.

Fixes: ff1745d5882b ("tools: libxl: do not set the PoD target on ARM")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: a0fb7e0e73483ed042d5ca34861a891a51ad337b
master date: 2022-04-22 20:39:34 +0100
tools/libs/ctrl/xc_domain.c