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:
Ján Tomko 2022-05-18 15:54:26 +02:00
parent e79bfda145
commit ef17772900
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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"),