[libvirt] [PATCH 18/22] util: Remove NONNULL(2) for virNetDevBandwidthPlug

John Ferlan posted 22 patches 8 years, 10 months ago
[libvirt] [PATCH 18/22] util: Remove NONNULL(2) for virNetDevBandwidthPlug
Posted by John Ferlan 8 years, 10 months ago
Since the code checks and handles a NULL 'net_bandwidth' parameter,
so no need for NONNNULL.

Signed-off-by: John Ferlan <jferlan@redhat.com>
---
 src/util/virnetdevbandwidth.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virnetdevbandwidth.h b/src/util/virnetdevbandwidth.h
index bceac2e..64f3537 100644
--- a/src/util/virnetdevbandwidth.h
+++ b/src/util/virnetdevbandwidth.h
@@ -59,8 +59,7 @@ int virNetDevBandwidthPlug(const char *brname,
                            const virMacAddr *ifmac_ptr,
                            virNetDevBandwidthPtr bandwidth,
                            unsigned int id)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
-    ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4)
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4)
     ATTRIBUTE_RETURN_CHECK;
 
 int virNetDevBandwidthUnplug(const char *brname,
-- 
2.9.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list