node_device: pacify grumpy coverity due to addr override

With commit 09364608b4 node_device: refactor address retrieval of node device
"if-else if" was replaced by "switch".
The contained break statement now is no longer in context of the for loop
but instead of the switch causing the legitimate grumpiness of coverity.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Suggested-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Boris Fiuczynski 2020-12-10 18:32:36 +01:00 committed by Michal Privoznik
parent cd338954b7
commit 43cc9b0011

View File

@ -687,6 +687,9 @@ nodeDeviceFindAddressByName(const char *name)
case VIR_NODE_DEV_CAP_LAST:
break;
}
if (addr)
break;
}
virNodeDeviceObjEndAPI(&dev);