]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove flag checking in MacVLanCreate helper stub
authorJán Tomko <jtomko@redhat.com>
Thu, 29 Jan 2015 09:03:29 +0000 (10:03 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 29 Jan 2015 09:06:56 +0000 (10:06 +0100)
When compiling without WITH_MACVTAP, we can get:
'unsupported flags (0x1) in function
virNetDevMacVLanCreateWithVPortProfile'
on an attempt to start a domain.

Remove the flag check to reach the more helpful error:
Cannot create macvlan devices on this platform

https://bugzilla.redhat.com/show_bug.cgi?id=1186928

src/util/virnetdevmacvlan.c

index f2eae06115add839a51c624be5e592509808b650..6a8a923f468db345f520f96be44dc82ba5253d39 100644 (file)
@@ -1066,9 +1066,8 @@ int virNetDevMacVLanCreateWithVPortProfile(const char *ifname ATTRIBUTE_UNUSED,
                                            char **res_ifname ATTRIBUTE_UNUSED,
                                            virNetDevVPortProfileOp vmop ATTRIBUTE_UNUSED,
                                            char *stateDir ATTRIBUTE_UNUSED,
-                                           unsigned int flags)
+                                           unsigned int flags ATTRIBUTE_UNUSED)
 {
-    virCheckFlags(0, -1);
     virReportSystemError(ENOSYS, "%s",
                          _("Cannot create macvlan devices on this platform"));
     return -1;