]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Remove NONNULL(2,3) for virHostdevReAttachPCIDevices
authorJohn Ferlan <jferlan@redhat.com>
Tue, 21 Mar 2017 18:23:11 +0000 (14:23 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:49:59 +0000 (13:49 -0400)
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

index 1202136c29f0aab17fe44adb7dedcace6e47fbc7..4ce5c4de547ab944a620d73a865f256879d8e36d 100644 (file)
@@ -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,