]> git.ipfire.org Git - thirdparty/libvirt.git/commit
node_device: pacify grumpy coverity due to addr override
authorBoris Fiuczynski <fiuczy@linux.ibm.com>
Thu, 10 Dec 2020 17:32:36 +0000 (18:32 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 14 Dec 2020 11:12:08 +0000 (12:12 +0100)
commit43cc9b001138310bb6df8964c65abdfc1b59cb0c
tree4797bd413044fe311b6b8f207ca63bded9eda7e2
parentcd338954b7056ba5c98fa860ce120358cbb74566
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>
src/node_device/node_device_driver.c