]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Resolve Coverity DEADCODE
authorJohn Ferlan <jferlan@redhat.com>
Mon, 27 Apr 2015 11:25:22 +0000 (07:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 27 Apr 2015 18:55:35 +0000 (14:55 -0400)
commitd8082d2d44f238d0ef2e4ad830e5b7acf1c02185
treef6d826732a1d6b84de736e8abc32e73dcfa6754c
parent1f7e811249588f9418e58ca9a23e2b94433b50e2
qemu: Resolve Coverity DEADCODE

Coverity notes that the switch() used to check 'connected' values has
two DEADCODE paths (_DEFAULT & _LAST).  Since 'connected' is a boolean
it can only be one or the other (CONNECTED or DISCONNECTED), so it just
seems pointless to use a switch to get "all" values.  Convert to if-else
src/qemu/qemu_driver.c