mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
util: Remove NONNULL(2,3) for virHostdevReAttachSCSIVHostDevices
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>
This commit is contained in:
parent
ceaf327475
commit
47dcce2f08
@ -1756,7 +1756,7 @@ virHostdevReAttachSCSIVHostDevices(virHostdevManagerPtr mgr,
|
|||||||
|
|
||||||
if (!(host = virSCSIVHostDeviceNew(hostsrc->wwpn))) {
|
if (!(host = virSCSIVHostDeviceNew(hostsrc->wwpn))) {
|
||||||
VIR_WARN("Unable to reattach SCSI_host device %s on domain %s",
|
VIR_WARN("Unable to reattach SCSI_host device %s on domain %s",
|
||||||
hostsrc->wwpn, dom_name);
|
hostsrc->wwpn, NULLSTR(dom_name));
|
||||||
virObjectUnlock(mgr->activeSCSIVHostHostdevs);
|
virObjectUnlock(mgr->activeSCSIVHostHostdevs);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ virHostdevReAttachSCSIVHostDevices(virHostdevManagerPtr hostdev_mgr,
|
|||||||
const char *dom_name,
|
const char *dom_name,
|
||||||
virDomainHostdevDefPtr *hostdevs,
|
virDomainHostdevDefPtr *hostdevs,
|
||||||
int nhostdevs)
|
int nhostdevs)
|
||||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
ATTRIBUTE_NONNULL(1);
|
||||||
int
|
int
|
||||||
virHostdevUpdateActivePCIDevices(virHostdevManagerPtr mgr,
|
virHostdevUpdateActivePCIDevices(virHostdevManagerPtr mgr,
|
||||||
virDomainHostdevDefPtr *hostdevs,
|
virDomainHostdevDefPtr *hostdevs,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user