mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 15:12:07 -06:00
intc/s390_flic_kvm.c: remove unneeded label in kvm_flic_load()
'out' label can be replaced by 'return' with the appropriate value that is set by 'r' right before the jump. Cc: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20200106182425.20312-42-danielhb413@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
e6de76fca4
commit
65569bbf37
1 changed files with 3 additions and 7 deletions
|
@ -439,17 +439,14 @@ static int kvm_flic_load(QEMUFile *f, void *opaque, size_t size,
|
||||||
count = qemu_get_be64(f);
|
count = qemu_get_be64(f);
|
||||||
len = count * sizeof(struct kvm_s390_irq);
|
len = count * sizeof(struct kvm_s390_irq);
|
||||||
if (count == FLIC_FAILED) {
|
if (count == FLIC_FAILED) {
|
||||||
r = -EINVAL;
|
return -EINVAL;
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
r = 0;
|
return 0;
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
buf = g_try_malloc0(len);
|
buf = g_try_malloc0(len);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
r = -ENOMEM;
|
return -ENOMEM;
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qemu_get_buffer(f, (uint8_t *) buf, len) != len) {
|
if (qemu_get_buffer(f, (uint8_t *) buf, len) != len) {
|
||||||
|
@ -460,7 +457,6 @@ static int kvm_flic_load(QEMUFile *f, void *opaque, size_t size,
|
||||||
|
|
||||||
out_free:
|
out_free:
|
||||||
g_free(buf);
|
g_free(buf);
|
||||||
out:
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue