mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
domain_conf: make virDomainRedirFilterDefFormat() void
This function always returns zero, so it might as well be void. Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
479a8c1fa1
commit
dca92b2203
@ -28776,7 +28776,7 @@ virDomainRedirdevDefFormat(virBufferPtr buf,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
virDomainRedirFilterDefFormat(virBufferPtr buf,
|
||||
virDomainRedirFilterDefPtr filter)
|
||||
{
|
||||
@ -28784,7 +28784,7 @@ virDomainRedirFilterDefFormat(virBufferPtr buf,
|
||||
|
||||
/* no need format an empty redirfilter */
|
||||
if (filter->nusbdevs == 0)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
virBufferAddLit(buf, "<redirfilter>\n");
|
||||
virBufferAdjustIndent(buf, 2);
|
||||
@ -28812,7 +28812,6 @@ virDomainRedirFilterDefFormat(virBufferPtr buf,
|
||||
}
|
||||
virBufferAdjustIndent(buf, -2);
|
||||
virBufferAddLit(buf, "</redirfilter>\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user