mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
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:
parent
cd338954b7
commit
43cc9b0011
@ -687,6 +687,9 @@ nodeDeviceFindAddressByName(const char *name)
|
||||
case VIR_NODE_DEV_CAP_LAST:
|
||||
break;
|
||||
}
|
||||
|
||||
if (addr)
|
||||
break;
|
||||
}
|
||||
|
||||
virNodeDeviceObjEndAPI(&dev);
|
||||
|
Loading…
Reference in New Issue
Block a user