mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Do not check if unsigned vars are less than zero
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
e79bfda145
commit
ef17772900
@ -287,7 +287,7 @@ esxStreamRecvFlags(virStreamPtr stream,
|
||||
if (esxStreamTransfer(priv, false) < 0)
|
||||
return -1;
|
||||
|
||||
if (priv->buffer_used <= 0)
|
||||
if (priv->buffer_used == 0)
|
||||
return -2;
|
||||
} else /* blocking */ {
|
||||
do {
|
||||
|
@ -233,7 +233,7 @@ virDomainQemuAttach(virConnectPtr conn,
|
||||
virResetLastError();
|
||||
|
||||
virCheckConnectReturn(conn, NULL);
|
||||
virCheckPositiveArgGoto(pid_value, error);
|
||||
virCheckNonZeroArgGoto(pid_value, error);
|
||||
if (pid != pid_value) {
|
||||
virReportInvalidArg(pid_value,
|
||||
_("pid_value in %s is too large"),
|
||||
|
Loading…
Reference in New Issue
Block a user