]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Remove NONNULL(2) for virNetDevBandwidthParse
authorJohn Ferlan <jferlan@redhat.com>
Tue, 21 Mar 2017 17:09:52 +0000 (13:09 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:49:59 +0000 (13:49 -0400)
Since the code checks and handles a NULL 'node' before proceeding
there's no need for the prototype with the NONNULL(2).

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/netdev_bandwidth_conf.h

index cdeac09e64e47705e40fbe8955e0b64ac6a964e3..c68742798ccb8809eac961ccb89e59101c032c6f 100644 (file)
@@ -32,7 +32,7 @@
 int virNetDevBandwidthParse(virNetDevBandwidthPtr *bandwidth,
                             xmlNodePtr node,
                             int net_type)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 int virNetDevBandwidthFormat(virNetDevBandwidthPtr def,
                              virBufferPtr buf)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);