]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove NONNULL(2,3) for virHostdevReAttachSCSIVHostDevices
authorJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 11:23:46 +0000 (07:23 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:50:00 +0000 (13:50 -0400)
The comparison code used STREQ_NULLABLE anyway for both 'drv_name' and
'dom_name', so no need. Add a NULLSTR on the 'dom_name' too.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virhostdev.c
src/util/virhostdev.h

index c424a970f7ab3f2d1bff4ce7e4734fdb850cca4b..fc0ebcb39443f1dc713550626ec91a10f446489e 100644 (file)
@@ -1756,7 +1756,7 @@ virHostdevReAttachSCSIVHostDevices(virHostdevManagerPtr mgr,
 
         if (!(host = virSCSIVHostDeviceNew(hostsrc->wwpn))) {
             VIR_WARN("Unable to reattach SCSI_host device %s on domain %s",
-                     hostsrc->wwpn, dom_name);
+                     hostsrc->wwpn, NULLSTR(dom_name));
             virObjectUnlock(mgr->activeSCSIVHostHostdevs);
             return;
         }
index 76039bb60024ab7c63bd96bcf1a1371ce02a29b6..43ba705b0f881b674d69483aad8f90e58e8dcc29 100644 (file)
@@ -124,7 +124,7 @@ virHostdevReAttachSCSIVHostDevices(virHostdevManagerPtr hostdev_mgr,
                                    const char *dom_name,
                                    virDomainHostdevDefPtr *hostdevs,
                                    int nhostdevs)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
+    ATTRIBUTE_NONNULL(1);
 int
 virHostdevUpdateActivePCIDevices(virHostdevManagerPtr mgr,
                                  virDomainHostdevDefPtr *hostdevs,