mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
xend: Address some Coverity false positives
The various _for_i loops with both u.s.car and u.s.cdr were being reported as COPY_PASTE errors by Coverity. This just quiets those messages.
This commit is contained in:
parent
05cc035189
commit
751bb8ce99
@ -2068,6 +2068,7 @@ xenDaemonListDomains(virConnectPtr conn, int *ids, int maxids)
|
||||
|
||||
ret = 0;
|
||||
|
||||
/* coverity[copy_paste_error] */
|
||||
for (_for_i = root, node = root->u.s.car; _for_i->kind == SEXPR_CONS;
|
||||
_for_i = _for_i->u.s.cdr, node = _for_i->u.s.car) {
|
||||
if (node->kind != SEXPR_VALUE)
|
||||
@ -2105,6 +2106,7 @@ xenDaemonNumOfDomains(virConnectPtr conn)
|
||||
|
||||
ret = 0;
|
||||
|
||||
/* coverity[copy_paste_error] */
|
||||
for (_for_i = root, node = root->u.s.car; _for_i->kind == SEXPR_CONS;
|
||||
_for_i = _for_i->u.s.cdr, node = _for_i->u.s.car) {
|
||||
if (node->kind != SEXPR_VALUE)
|
||||
@ -3431,6 +3433,7 @@ xenDaemonNumOfDefinedDomains(virConnectPtr conn)
|
||||
|
||||
ret = 0;
|
||||
|
||||
/* coverity[copy_paste_error] */
|
||||
for (_for_i = root, node = root->u.s.car; _for_i->kind == SEXPR_CONS;
|
||||
_for_i = _for_i->u.s.cdr, node = _for_i->u.s.car) {
|
||||
if (node->kind != SEXPR_VALUE)
|
||||
@ -3464,6 +3467,7 @@ xenDaemonListDefinedDomains(virConnectPtr conn, char **const names, int maxnames
|
||||
|
||||
ret = 0;
|
||||
|
||||
/* coverity[copy_paste_error] */
|
||||
for (_for_i = root, node = root->u.s.car; _for_i->kind == SEXPR_CONS;
|
||||
_for_i = _for_i->u.s.cdr, node = _for_i->u.s.car) {
|
||||
if (node->kind != SEXPR_VALUE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user