[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/15] intc/s390_flic_kvm.c: remove unneeded label in kvm_flic_loa
From: |
Cornelia Huck |
Subject: |
[PULL 02/15] intc/s390_flic_kvm.c: remove unneeded label in kvm_flic_load() |
Date: |
Mon, 27 Jan 2020 13:20:03 +0100 |
From: Daniel Henrique Barboza <address@hidden>
'out' label can be replaced by 'return' with the appropriate
value that is set by 'r' right before the jump.
Cc: Christian Borntraeger <address@hidden>
Signed-off-by: Daniel Henrique Barboza <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
hw/intc/s390_flic_kvm.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c
index dddd33ea61c8..2e1e70c61d5b 100644
--- a/hw/intc/s390_flic_kvm.c
+++ b/hw/intc/s390_flic_kvm.c
@@ -439,17 +439,14 @@ static int kvm_flic_load(QEMUFile *f, void *opaque,
size_t size,
count = qemu_get_be64(f);
len = count * sizeof(struct kvm_s390_irq);
if (count == FLIC_FAILED) {
- r = -EINVAL;
- goto out;
+ return -EINVAL;
}
if (count == 0) {
- r = 0;
- goto out;
+ return 0;
}
buf = g_try_malloc0(len);
if (!buf) {
- r = -ENOMEM;
- goto out;
+ return -ENOMEM;
}
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:
g_free(buf);
-out:
return r;
}
--
2.21.1
- [PULL 00/15] s390x update, Cornelia Huck, 2020/01/27
- [PULL 01/15] s390x/sclp.c: remove unneeded label in sclp_service_call(), Cornelia Huck, 2020/01/27
- [PULL 02/15] intc/s390_flic_kvm.c: remove unneeded label in kvm_flic_load(),
Cornelia Huck <=
- [PULL 03/15] s390x/event-facility.c: remove unneeded labels, Cornelia Huck, 2020/01/27
- [PULL 04/15] s390x: adapter routes error handling, Cornelia Huck, 2020/01/27
- [PULL 05/15] s390x/event-facility: fix error propagation, Cornelia Huck, 2020/01/27
- [PULL 06/15] target/s390x: Remove duplicated ifdef macro, Cornelia Huck, 2020/01/27
- [PULL 07/15] docs/devel: fix stable process doc formatting, Cornelia Huck, 2020/01/27
- [PULL 09/15] target/s390x: Move struct DisasFields definition earlier, Cornelia Huck, 2020/01/27
- [PULL 08/15] target/s390x/kvm: Enable adapter interruption suppression again, Cornelia Huck, 2020/01/27
- [PULL 10/15] target/s390x: Remove DisasFields argument from callbacks, Cornelia Huck, 2020/01/27
- [PULL 12/15] target/s390x: Move DisasFields into DisasContext, Cornelia Huck, 2020/01/27
- [PULL 14/15] hw/s390x: Add a more verbose comment about get_machine_class() and the wrappers, Cornelia Huck, 2020/01/27