mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
cleanup: Drop pointless return at end of function
A few functions now end with a label. The next commit will clean them
up.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250407082643.2310002-3-armbru@redhat.com>
[Straightforward conflict with commit 988ad4cceb
(hw/loongarch/virt:
Fix cpuslot::cpu set at last in virt_cpu_plug()) resolved]
This commit is contained in:
parent
720a0e417e
commit
8a2b516ba2
113 changed files with 0 additions and 196 deletions
|
@ -267,7 +267,6 @@ err_virtio:
|
|||
g_free(fs->req_vqs);
|
||||
virtio_cleanup(vdev);
|
||||
g_free(fs->vhost_dev.vqs);
|
||||
return;
|
||||
}
|
||||
|
||||
static void vuf_device_unrealize(DeviceState *dev)
|
||||
|
|
|
@ -258,8 +258,6 @@ static void vu_scmi_device_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
qemu_chr_fe_set_handlers(&scmi->chardev, NULL, NULL, vu_scmi_event, NULL,
|
||||
dev, NULL, true);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void vu_scmi_device_unrealize(DeviceState *dev)
|
||||
|
|
|
@ -128,7 +128,6 @@ err_vhost_dev:
|
|||
err_virtio:
|
||||
vhost_vsock_common_unrealize(vdev);
|
||||
vhost_user_cleanup(&vsock->vhost_user);
|
||||
return;
|
||||
}
|
||||
|
||||
static void vuv_device_unrealize(DeviceState *dev)
|
||||
|
|
|
@ -654,8 +654,6 @@ static void scrub_shadow_regions(struct vhost_dev *dev,
|
|||
}
|
||||
*nr_rem_reg = rm_idx;
|
||||
*nr_add_reg = add_idx;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static int send_remove_regions(struct vhost_dev *dev,
|
||||
|
|
|
@ -288,8 +288,6 @@ static void vhost_vdpa_iommu_region_add(MemoryListener *listener,
|
|||
|
||||
QLIST_INSERT_HEAD(&s->iommu_list, iommu, iommu_next);
|
||||
memory_region_iommu_replay(iommu->iommu_mr, &iommu->n);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void vhost_vdpa_iommu_region_del(MemoryListener *listener,
|
||||
|
|
|
@ -732,7 +732,6 @@ out:
|
|||
memory_region_unref(old_sections[n_old_sections].mr);
|
||||
}
|
||||
g_free(old_sections);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Adds the section data to the tmp_section structure.
|
||||
|
|
|
@ -1609,7 +1609,6 @@ static void handle_input(VirtIODevice *vdev, VirtQueue *vq)
|
|||
if (in_elem) {
|
||||
virtqueue_detach_element(vq, in_elem, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static uint64_t get_features(VirtIODevice *vdev, uint64_t f, Error **errp)
|
||||
|
|
|
@ -3648,7 +3648,6 @@ static void virtio_queue_packed_restore_last_avail_idx(VirtIODevice *vdev,
|
|||
int n)
|
||||
{
|
||||
/* We don't have a reference like avail idx in shared memory */
|
||||
return;
|
||||
}
|
||||
|
||||
static void virtio_queue_split_restore_last_avail_idx(VirtIODevice *vdev,
|
||||
|
@ -3673,7 +3672,6 @@ void virtio_queue_restore_last_avail_idx(VirtIODevice *vdev, int n)
|
|||
static void virtio_queue_packed_update_used_idx(VirtIODevice *vdev, int n)
|
||||
{
|
||||
/* used idx was updated through set_last_avail_idx() */
|
||||
return;
|
||||
}
|
||||
|
||||
static void virtio_queue_split_update_used_idx(VirtIODevice *vdev, int n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue