lib/transaction_ops.c: fix a dead assignment.

Found by clang-analyzer.

Bug Summary
File: lib/transaction_ops.c
Warning: line 274, column 4
Value stored to 'rv' is never read
This commit is contained in:
Juan RP 2019-06-18 16:00:39 +02:00
parent 363f5a93de
commit 6fe5bbc596

View File

@ -270,8 +270,6 @@ xbps_autoupdate(struct xbps_handle *xhp)
xbps_dbg_printf(xhp, "%s: trans_find_pkg revdep %s: %d\n", __func__, curpkgver, rv);
if (rv && rv != ENOENT && rv != EEXIST && rv != ENODEV)
return -1;
rv = 0;
}
return 1;
} else if (rv == ENOENT || rv == EEXIST || rv == ENODEV) {