]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: eliminate useless local variable
authorLaine Stump <laine@laine.org>
Sun, 5 Mar 2017 22:32:15 +0000 (17:32 -0500)
committerLaine Stump <laine@laine.org>
Fri, 24 Mar 2017 04:36:43 +0000 (00:36 -0400)
commit606a01339563b5371f21a9b2c10ef818c0557fb1
tree3b552b05956eba8ade8f6af79110a6e1f7ee2690
parent19c5db749cdc3ddf53c2b23d5803a0f17cc5077a
util: eliminate useless local variable

vf in virNetDevMacVLanDeleteWithVPortProfile() is initialized to -1
and never set. It's not set for a good reason - because it doesn't
make sense during macvtap device setup to refer to a VF device as
"PF:VF#". This patch replaces the two uses of "vf" with "-1", and
removes the local variable, so that it's more clear we are always
calling the utility functions with vf set to -1.
src/util/virnetdevmacvlan.c