]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove NONNULL(1) for virNetDevMacVLanDeleteWithVPortProfile
authorJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 12:07:44 +0000 (08:07 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:50:00 +0000 (13:50 -0400)
Since the source code checks 'ifname' for NULL before using, the prototype
doesn't need the NONNULL

src/util/virnetdevmacvlan.h

index 9a85a6587597d4a81d820fec8a3246a0e6aa707a..c40f23ed2e9a7b3b03d8ba010d5a321e89fcc9d4 100644 (file)
@@ -88,7 +88,7 @@ int virNetDevMacVLanDeleteWithVPortProfile(const char *ifname,
                                            int mode,
                                            virNetDevVPortProfilePtr virtPortProfile,
                                            char *stateDir)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
+    ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
     ATTRIBUTE_NONNULL(6) ATTRIBUTE_RETURN_CHECK;
 
 int virNetDevMacVLanRestartWithVPortProfile(const char *cr_ifname,