]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetdev: Resolve Coverity DEADCODE
authorJohn Ferlan <jferlan@redhat.com>
Wed, 29 Oct 2014 20:57:58 +0000 (16:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 29 Oct 2014 22:56:06 +0000 (18:56 -0400)
commit764deecbd9d132264b43ad405d7f87271c92f121
tree6405dccba06eca0feac5ddb499b80fe931ed977c
parent16d2bc8b98563f801f111795250515fcbd39ab46
virnetdev: Resolve Coverity DEADCODE

Coverity complains that because the for loop is from 0 to 5 (max tokens)
and the impending switch/case statements used each of the #define values
that the 'default' wouldn't reachable. This patch will convert the #define's
into enum's and add the obligatory dead_error_begin marker for these type
situations.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virnetdev.c