[libvirt] [PATCH 11/22] util: Remove NONNULL(2, 3) for virHostdevReAttachPCIDevices

John Ferlan posted 22 patches 8 years, 10 months ago
[libvirt] [PATCH 11/22] util: Remove NONNULL(2, 3) for virHostdevReAttachPCIDevices
Posted by John Ferlan 8 years, 10 months ago
The called function uses a STRNEQ_NULLABLE anyway for both 'drv_name' and
'dom_name', so no need.

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

diff --git a/src/util/virhostdev.h b/src/util/virhostdev.h
index 1202136..4ce5c4d 100644
--- a/src/util/virhostdev.h
+++ b/src/util/virhostdev.h
@@ -103,7 +103,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr hostdev_mgr,
                              virDomainHostdevDefPtr *hostdevs,
                              int nhostdevs,
                              const char *oldStateDir)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
+    ATTRIBUTE_NONNULL(1);
 void
 virHostdevReAttachUSBDevices(virHostdevManagerPtr hostdev_mgr,
                               const char *drv_name,
-- 
2.9.3

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