]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove NONNULL(1) for virNetDevOpenvswitchGetVhostuserIfname
authorJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 11:25:32 +0000 (07:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:50:00 +0000 (13:50 -0400)
Since the code checks and handles a NULL 'path', no need for the NONNULL

src/util/virnetdevopenvswitch.h

index 021eba9d3a66084f3dfcc49f155ecb7cb0a46d1d..7380a2d84bc35f0c329440e839a7b0912f218dc7 100644 (file)
@@ -59,6 +59,6 @@ int virNetDevOpenvswitchInterfaceStats(const char *ifname,
 
 int virNetDevOpenvswitchGetVhostuserIfname(const char *path,
                                            char **ifname)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
+    ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
 
 #endif /* __VIR_NETDEV_OPENVSWITCH_H__ */