mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
virnetdevmacvlan: Drop G_GNUC_WARN_UNUSED_RESULT annotation for virNetDevMacVLanDeleteWithVPortProfile()
Every single caller of the virNetDevMacVLanDeleteWithVPortProfile() function is calling it wrapped inside of ignore_value() macro. This is because the function is annotated as G_GNUC_WARN_UNUSED_RESULT. This makes no sense. Drop the annotation and the macro envelope. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
714af1a50c
commit
c0f671e7c9
@ -1378,12 +1378,11 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
||||
virErrorRestore(&originalError);
|
||||
|
||||
if (virDomainNetGetActualType(net) == VIR_DOMAIN_NET_TYPE_DIRECT) {
|
||||
ignore_value(virNetDevMacVLanDeleteWithVPortProfile(
|
||||
net->ifname, &net->mac,
|
||||
virNetDevMacVLanDeleteWithVPortProfile(net->ifname, &net->mac,
|
||||
virDomainNetGetActualDirectDev(net),
|
||||
virDomainNetGetActualDirectMode(net),
|
||||
virDomainNetGetActualVirtPortProfile(net),
|
||||
cfg->stateDir));
|
||||
cfg->stateDir);
|
||||
}
|
||||
|
||||
qemuDomainNetDeviceVportRemove(net);
|
||||
@ -4653,12 +4652,11 @@ qemuDomainRemoveNetDevice(virQEMUDriver *driver,
|
||||
}
|
||||
|
||||
if (actualType == VIR_DOMAIN_NET_TYPE_DIRECT) {
|
||||
ignore_value(virNetDevMacVLanDeleteWithVPortProfile(
|
||||
net->ifname, &net->mac,
|
||||
virNetDevMacVLanDeleteWithVPortProfile(net->ifname, &net->mac,
|
||||
virDomainNetGetActualDirectDev(net),
|
||||
virDomainNetGetActualDirectMode(net),
|
||||
virDomainNetGetActualVirtPortProfile(net),
|
||||
cfg->stateDir));
|
||||
cfg->stateDir);
|
||||
}
|
||||
|
||||
if (actualType == VIR_DOMAIN_NET_TYPE_VHOSTUSER) {
|
||||
|
@ -8443,12 +8443,11 @@ void qemuProcessStop(virQEMUDriver *driver,
|
||||
vport = virDomainNetGetActualVirtPortProfile(net);
|
||||
switch (virDomainNetGetActualType(net)) {
|
||||
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
||||
ignore_value(virNetDevMacVLanDeleteWithVPortProfile(
|
||||
net->ifname, &net->mac,
|
||||
virNetDevMacVLanDeleteWithVPortProfile(net->ifname, &net->mac,
|
||||
virDomainNetGetActualDirectDev(net),
|
||||
virDomainNetGetActualDirectMode(net),
|
||||
virDomainNetGetActualVirtPortProfile(net),
|
||||
cfg->stateDir));
|
||||
cfg->stateDir);
|
||||
break;
|
||||
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
||||
if (net->managed_tap != VIR_TRISTATE_BOOL_NO && net->ifname) {
|
||||
|
@ -92,7 +92,7 @@ int virNetDevMacVLanDeleteWithVPortProfile(const char *ifname,
|
||||
const virNetDevVPortProfile *virtPortProfile,
|
||||
char *stateDir)
|
||||
ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
|
||||
ATTRIBUTE_NONNULL(6) G_GNUC_WARN_UNUSED_RESULT;
|
||||
ATTRIBUTE_NONNULL(6);
|
||||
|
||||
int virNetDevMacVLanRestartWithVPortProfile(const char *cr_ifname,
|
||||
const virMacAddr *macaddress,
|
||||
|
Loading…
Reference in New Issue
Block a user