]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn-varlink: use error < 0 in async QMP completion callbacks
authorChristian Brauner <brauner@kernel.org>
Tue, 21 Apr 2026 22:19:20 +0000 (00:19 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 24 Apr 2026 12:39:25 +0000 (14:39 +0200)
commitb34413db8e462a51feff98e427268a682ce9c7f7
tree45d66a8fe4b571630805bc8aaacb5cf68c8a3b96
parent6920dfc0f03f191ec12cfc482d78d9a5f05168d5
vmspawn-varlink: use error < 0 in async QMP completion callbacks

The QMP client always passes either 0 or a negative errno; the != 0 check
flagged values that cannot occur. Switch to the < 0 idiom used elsewhere
in the tree, and reorder on_qmp_simple_complete so the error path is the
first branch (the more conventional shape for callbacks). Equivalent in
behaviour.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
src/vmspawn/vmspawn-varlink.c