]> Git Repo - qemu.git/commitdiff
intc/s390_flic_kvm.c: remove unneeded label in kvm_flic_load()
authorDaniel Henrique Barboza <[email protected]>
Mon, 6 Jan 2020 18:24:07 +0000 (15:24 -0300)
committerCornelia Huck <[email protected]>
Mon, 27 Jan 2020 11:13:09 +0000 (12:13 +0100)
'out' label can be replaced by 'return' with the appropriate
value that is set by 'r' right before the jump.

Cc: Christian Borntraeger <[email protected]>
Signed-off-by: Daniel Henrique Barboza <[email protected]>
Message-Id: <20200106182425[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/intc/s390_flic_kvm.c

index dddd33ea61c8016c67430732d544f1dd7a692658..2e1e70c61d5b0d5b6a3ad4c98f9a8d8ddcd7532b 100644 (file)
@@ -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;
 }
 
This page took 0.028602 seconds and 4 git commands to generate.