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:
Markus Armbruster 2025-04-07 10:26:42 +02:00
parent 720a0e417e
commit 8a2b516ba2
113 changed files with 0 additions and 196 deletions

View file

@ -665,7 +665,6 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
out_unlock_next: out_unlock_next:
qemu_spin_unlock(&tb_next->jmp_lock); qemu_spin_unlock(&tb_next->jmp_lock);
return;
} }
static inline bool cpu_handle_halt(CPUState *cpu) static inline bool cpu_handle_halt(CPUState *cpu)

View file

@ -972,8 +972,6 @@ static void qemu_gluster_reopen_commit(BDRVReopenState *state)
g_free(state->opaque); g_free(state->opaque);
state->opaque = NULL; state->opaque = NULL;
return;
} }
@ -993,8 +991,6 @@ static void qemu_gluster_reopen_abort(BDRVReopenState *state)
g_free(state->opaque); g_free(state->opaque);
state->opaque = NULL; state->opaque = NULL;
return;
} }
#ifdef CONFIG_GLUSTERFS_ZEROFILL #ifdef CONFIG_GLUSTERFS_ZEROFILL

View file

@ -254,7 +254,6 @@ static void qemu_rbd_parse_filename(const char *filename, QDict *options,
done: done:
g_free(buf); g_free(buf);
qobject_unref(keypairs); qobject_unref(keypairs);
return;
} }
static int qemu_rbd_set_auth(rados_t cluster, BlockdevOptionsRbd *opts, static int qemu_rbd_set_auth(rados_t cluster, BlockdevOptionsRbd *opts,

View file

@ -176,7 +176,6 @@ static void replication_child_perm(BlockDriverState *bs, BdrvChild *c,
*nshared = BLK_PERM_CONSISTENT_READ *nshared = BLK_PERM_CONSISTENT_READ
| BLK_PERM_WRITE | BLK_PERM_WRITE
| BLK_PERM_WRITE_UNCHANGED; | BLK_PERM_WRITE_UNCHANGED;
return;
} }
static int64_t coroutine_fn GRAPH_RDLOCK static int64_t coroutine_fn GRAPH_RDLOCK

View file

@ -908,7 +908,6 @@ unlock:
qemu_mutex_unlock(&tg->lock); qemu_mutex_unlock(&tg->lock);
qapi_free_ThrottleLimits(argp); qapi_free_ThrottleLimits(argp);
error_propagate(errp, local_err); error_propagate(errp, local_err);
return;
} }
static void throttle_group_get_limits(Object *obj, Visitor *v, static void throttle_group_get_limits(Object *obj, Visitor *v,

View file

@ -441,7 +441,6 @@ void queue_signal(CPUArchState *env, int sig, int si_type,
ts->sync_signal.pending = sig; ts->sync_signal.pending = sig;
/* Signal that a new signal is pending. */ /* Signal that a new signal is pending. */
qatomic_set(&ts->signal_pending, 1); qatomic_set(&ts->signal_pending, 1);
return;
} }
static int fatal_signal(int sig) static int fatal_signal(int sig)

View file

@ -476,8 +476,6 @@ out_free:
g_free(saved_ctx); g_free(saved_ctx);
out_cr3: out_cr3:
first_x86_cpu->env.cr[3] = saved_cr3; first_x86_cpu->env.cr[3] = saved_cr3;
return;
} }
#else /* !TARGET_X86_64 */ #else /* !TARGET_X86_64 */

View file

@ -73,8 +73,6 @@ static void event_loop_base_set_param(Object *obj, Visitor *v,
if (bc->update_params) { if (bc->update_params) {
bc->update_params(base, errp); bc->update_params(base, errp);
} }
return;
} }
static void event_loop_base_complete(UserCreatable *uc, Error **errp) static void event_loop_base_complete(UserCreatable *uc, Error **errp)

View file

@ -10,47 +10,39 @@ void acpi_switch_to_modern_cphp(AcpiCpuHotplug *gpe_cpu,
CPUHotplugState *cpuhp_state, CPUHotplugState *cpuhp_state,
uint16_t io_port) uint16_t io_port)
{ {
return;
} }
void legacy_acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner, void legacy_acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner,
AcpiCpuHotplug *gpe_cpu, uint16_t base) AcpiCpuHotplug *gpe_cpu, uint16_t base)
{ {
return;
} }
void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner, void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,
CPUHotplugState *state, hwaddr base_addr) CPUHotplugState *state, hwaddr base_addr)
{ {
return;
} }
void acpi_cpu_ospm_status(CPUHotplugState *cpu_st, ACPIOSTInfoList ***list) void acpi_cpu_ospm_status(CPUHotplugState *cpu_st, ACPIOSTInfoList ***list)
{ {
return;
} }
void acpi_cpu_plug_cb(HotplugHandler *hotplug_dev, void acpi_cpu_plug_cb(HotplugHandler *hotplug_dev,
CPUHotplugState *cpu_st, DeviceState *dev, Error **errp) CPUHotplugState *cpu_st, DeviceState *dev, Error **errp)
{ {
return;
} }
void legacy_acpi_cpu_plug_cb(HotplugHandler *hotplug_dev, void legacy_acpi_cpu_plug_cb(HotplugHandler *hotplug_dev,
AcpiCpuHotplug *g, DeviceState *dev, Error **errp) AcpiCpuHotplug *g, DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_cpu_unplug_cb(CPUHotplugState *cpu_st, void acpi_cpu_unplug_cb(CPUHotplugState *cpu_st,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_cpu_unplug_request_cb(HotplugHandler *hotplug_dev, void acpi_cpu_unplug_request_cb(HotplugHandler *hotplug_dev,
CPUHotplugState *cpu_st, CPUHotplugState *cpu_st,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }

View file

@ -7,29 +7,24 @@ const VMStateDescription vmstate_memory_hotplug;
void acpi_memory_hotplug_init(MemoryRegion *as, Object *owner, void acpi_memory_hotplug_init(MemoryRegion *as, Object *owner,
MemHotplugState *state, hwaddr io_base) MemHotplugState *state, hwaddr io_base)
{ {
return;
} }
void acpi_memory_ospm_status(MemHotplugState *mem_st, ACPIOSTInfoList ***list) void acpi_memory_ospm_status(MemHotplugState *mem_st, ACPIOSTInfoList ***list)
{ {
return;
} }
void acpi_memory_plug_cb(HotplugHandler *hotplug_dev, MemHotplugState *mem_st, void acpi_memory_plug_cb(HotplugHandler *hotplug_dev, MemHotplugState *mem_st,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_memory_unplug_cb(MemHotplugState *mem_st, void acpi_memory_unplug_cb(MemHotplugState *mem_st,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_memory_unplug_request_cb(HotplugHandler *hotplug_dev, void acpi_memory_unplug_request_cb(HotplugHandler *hotplug_dev,
MemHotplugState *mem_st, MemHotplugState *mem_st,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }

View file

@ -4,5 +4,4 @@
void nvdimm_acpi_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev) void nvdimm_acpi_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev)
{ {
return;
} }

View file

@ -7,37 +7,31 @@ const VMStateDescription vmstate_acpi_pcihp_pci_status;
void acpi_pcihp_init(Object *owner, AcpiPciHpState *s, PCIBus *root_bus, void acpi_pcihp_init(Object *owner, AcpiPciHpState *s, PCIBus *root_bus,
MemoryRegion *address_space_io, uint16_t io_base) MemoryRegion *address_space_io, uint16_t io_base)
{ {
return;
} }
void acpi_pcihp_device_plug_cb(HotplugHandler *hotplug_dev, AcpiPciHpState *s, void acpi_pcihp_device_plug_cb(HotplugHandler *hotplug_dev, AcpiPciHpState *s,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_pcihp_device_pre_plug_cb(HotplugHandler *hotplug_dev, void acpi_pcihp_device_pre_plug_cb(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_pcihp_device_unplug_cb(HotplugHandler *hotplug_dev, AcpiPciHpState *s, void acpi_pcihp_device_unplug_cb(HotplugHandler *hotplug_dev, AcpiPciHpState *s,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
return;
} }
void acpi_pcihp_device_unplug_request_cb(HotplugHandler *hotplug_dev, void acpi_pcihp_device_unplug_request_cb(HotplugHandler *hotplug_dev,
AcpiPciHpState *s, DeviceState *dev, AcpiPciHpState *s, DeviceState *dev,
Error **errp) Error **errp)
{ {
return;
} }
void acpi_pcihp_reset(AcpiPciHpState *s) void acpi_pcihp_reset(AcpiPciHpState *s)
{ {
return;
} }
bool acpi_pcihp_is_hotpluggbale_bus(AcpiPciHpState *s, BusState *bus) bool acpi_pcihp_is_hotpluggbale_bus(AcpiPciHpState *s, BusState *bus)

View file

@ -462,7 +462,6 @@ static uint64_t exynos4210_chipid_and_omr_read(void *opaque, hwaddr offset,
static void exynos4210_chipid_and_omr_write(void *opaque, hwaddr offset, static void exynos4210_chipid_and_omr_write(void *opaque, hwaddr offset,
uint64_t value, unsigned size) uint64_t value, unsigned size)
{ {
return;
} }
static const MemoryRegionOps exynos4210_chipid_and_omr_ops = { static const MemoryRegionOps exynos4210_chipid_and_omr_ops = {

View file

@ -712,7 +712,6 @@ static void combine_tlb(SMMUTLBEntry *tlbe, SMMUTLBEntry *tlbe_s2,
tlbe->entry.iova = iova & ~tlbe->entry.addr_mask; tlbe->entry.iova = iova & ~tlbe->entry.addr_mask;
/* parent_perm has s2 perm while perm keeps s1 perm. */ /* parent_perm has s2 perm while perm keeps s1 perm. */
tlbe->parent_perm = tlbe_s2->entry.perm; tlbe->parent_perm = tlbe_s2->entry.perm;
return;
} }
/** /**

View file

@ -14,7 +14,6 @@
void arch_handle_ioreq(XenIOState *state, ioreq_t *req) void arch_handle_ioreq(XenIOState *state, ioreq_t *req)
{ {
hw_error("Invalid ioreq type 0x%x\n", req->type); hw_error("Invalid ioreq type 0x%x\n", req->type);
return;
} }
void arch_xen_set_memory(XenIOState *state, MemoryRegionSection *section, void arch_xen_set_memory(XenIOState *state, MemoryRegionSection *section,

View file

@ -406,7 +406,6 @@ static void asc_fifo_write(void *opaque, hwaddr addr, uint64_t value,
} else { } else {
fs->fifo[addr] = value; fs->fifo[addr] = value;
} }
return;
} }
static const MemoryRegionOps asc_fifo_ops = { static const MemoryRegionOps asc_fifo_ops = {

View file

@ -793,7 +793,6 @@ separator_error:
error_setg(errp, "reserved region fields must be separated with ':'"); error_setg(errp, "reserved region fields must be separated with ':'");
out: out:
g_free(str); g_free(str);
return;
} }
const PropertyInfo qdev_prop_reserved_region = { const PropertyInfo qdev_prop_reserved_region = {

View file

@ -67,8 +67,6 @@ static void cxl_fixed_memory_window_config(CXLState *cxl_state,
cxl_state->fixed_windows = g_list_append(cxl_state->fixed_windows, cxl_state->fixed_windows = g_list_append(cxl_state->fixed_windows,
g_steal_pointer(&fw)); g_steal_pointer(&fw));
return;
} }
void cxl_fmws_link_targets(CXLState *cxl_state, Error **errp) void cxl_fmws_link_targets(CXLState *cxl_state, Error **errp)

View file

@ -383,7 +383,6 @@ static void macfb_sense_write(MacfbState *s, uint32_t val)
s->regs[DAFB_MODE_SENSE >> 2] = val; s->regs[DAFB_MODE_SENSE >> 2] = val;
trace_macfb_sense_write(val); trace_macfb_sense_write(val);
return;
} }
static void macfb_update_mode(MacfbState *s) static void macfb_update_mode(MacfbState *s)

View file

@ -729,7 +729,6 @@ static uint64_t tcx_dummy_readl(void *opaque, hwaddr addr,
static void tcx_dummy_writel(void *opaque, hwaddr addr, static void tcx_dummy_writel(void *opaque, hwaddr addr,
uint64_t val, unsigned size) uint64_t val, unsigned size)
{ {
return;
} }
static const MemoryRegionOps tcx_dummy_ops = { static const MemoryRegionOps tcx_dummy_ops = {

View file

@ -110,7 +110,6 @@ static void virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info)
/* send event to guest */ /* send event to guest */
virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY); virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY);
return;
} }
static void static void

View file

@ -152,7 +152,6 @@ done:
error: error:
s->chan[ch].state = DMA_CHAN_STATE_ERROR; s->chan[ch].state = DMA_CHAN_STATE_ERROR;
s->chan[ch].control |= CONTROL_ERR; s->chan[ch].control |= CONTROL_ERR;
return;
} }
static inline void sifive_pdma_update_irq(SiFivePDMAState *s, int ch) static inline void sifive_pdma_update_irq(SiFivePDMAState *s, int ch)

View file

@ -800,7 +800,6 @@ static void aspeed_gpio_write_index_mode(void *opaque, hwaddr offset,
return; return;
} }
aspeed_gpio_update(s, set, set->data_value, UINT32_MAX); aspeed_gpio_update(s, set, set->data_value, UINT32_MAX);
return;
} }
static void aspeed_gpio_write(void *opaque, hwaddr offset, uint64_t data, static void aspeed_gpio_write(void *opaque, hwaddr offset, uint64_t data,
@ -928,7 +927,6 @@ static void aspeed_gpio_write(void *opaque, hwaddr offset, uint64_t data,
return; return;
} }
aspeed_gpio_update(s, set, set->data_value, UINT32_MAX); aspeed_gpio_update(s, set, set->data_value, UINT32_MAX);
return;
} }
static int get_set_idx(AspeedGPIOState *s, const char *group, int *group_idx) static int get_set_idx(AspeedGPIOState *s, const char *group, int *group_idx)
@ -1183,7 +1181,6 @@ static void aspeed_gpio_2700_write_control_reg(AspeedGPIOState *s,
} }
aspeed_gpio_update(s, set, set->data_value, UINT32_MAX); aspeed_gpio_update(s, set, set->data_value, UINT32_MAX);
return;
} }
static uint64_t aspeed_gpio_2700_read(void *opaque, hwaddr offset, static uint64_t aspeed_gpio_2700_read(void *opaque, hwaddr offset,
@ -1308,8 +1305,6 @@ static void aspeed_gpio_2700_write(void *opaque, hwaddr offset,
PRIx64"\n", __func__, offset); PRIx64"\n", __func__, offset);
break; break;
} }
return;
} }
/* Setup functions */ /* Setup functions */

View file

@ -293,7 +293,6 @@ static void bcm2838_gpio_write(void *opaque, hwaddr offset, uint64_t value,
qemu_log_mask(LOG_GUEST_ERROR, "%s: %s: bad offset %"HWADDR_PRIx"\n", qemu_log_mask(LOG_GUEST_ERROR, "%s: %s: bad offset %"HWADDR_PRIx"\n",
TYPE_BCM2838_GPIO, __func__, offset); TYPE_BCM2838_GPIO, __func__, offset);
} }
return;
} }
static void bcm2838_gpio_reset(DeviceState *dev) static void bcm2838_gpio_reset(DeviceState *dev)

View file

@ -257,8 +257,6 @@ static void imx_gpio_write(void *opaque, hwaddr offset, uint64_t value,
HWADDR_PRIx "\n", TYPE_IMX_GPIO, __func__, offset); HWADDR_PRIx "\n", TYPE_IMX_GPIO, __func__, offset);
break; break;
} }
return;
} }
static const MemoryRegionOps imx_gpio_ops = { static const MemoryRegionOps imx_gpio_ops = {

View file

@ -443,7 +443,6 @@ static void pl061_write(void *opaque, hwaddr offset,
return; return;
} }
pl061_update(s); pl061_update(s);
return;
} }
static void pl061_enter_reset(Object *obj, ResetType type) static void pl061_enter_reset(Object *obj, ResetType type)

View file

@ -2073,7 +2073,6 @@ static void send_unload(VMBus *vmbus)
qemu_mutex_unlock(&vmbus->rx_queue_lock); qemu_mutex_unlock(&vmbus->rx_queue_lock);
post_msg(vmbus, &msg, sizeof(msg)); post_msg(vmbus, &msg, sizeof(msg));
return;
} }
static bool complete_unload(VMBus *vmbus) static bool complete_unload(VMBus *vmbus)

View file

@ -205,7 +205,6 @@ out:
error: error:
s->smb_stat |= STS_DEV_ERR; s->smb_stat |= STS_DEV_ERR;
return;
} }
static void smb_transaction_start(PMSMBus *s) static void smb_transaction_start(PMSMBus *s)

View file

@ -4515,8 +4515,6 @@ static void vtd_iommu_replay(IOMMUMemoryRegion *iommu_mr, IOMMUNotifier *n)
trace_vtd_replay_ce_invalid(bus_n, PCI_SLOT(vtd_as->devfn), trace_vtd_replay_ce_invalid(bus_n, PCI_SLOT(vtd_as->devfn),
PCI_FUNC(vtd_as->devfn)); PCI_FUNC(vtd_as->devfn));
} }
return;
} }
static void vtd_cap_init(IntelIOMMUState *s) static void vtd_cap_init(IntelIOMMUState *s)

View file

@ -203,7 +203,6 @@ static void x86_load_eif(X86MachineState *x86ms, FWCfgState *fw_cfg,
unlink(machine->kernel_filename); unlink(machine->kernel_filename);
unlink(machine->initrd_filename); unlink(machine->initrd_filename);
return;
} }
static bool create_memfd_backend(MachineState *ms, const char *path, static bool create_memfd_backend(MachineState *ms, const char *path,

View file

@ -758,6 +758,4 @@ void arch_handle_ioreq(XenIOState *state, ioreq_t *req)
default: default:
hw_error("Invalid ioreq type 0x%x\n", req->type); hw_error("Invalid ioreq type 0x%x\n", req->type);
} }
return;
} }

View file

@ -178,7 +178,6 @@ static void virtio_input_host_realize(DeviceState *dev, Error **errp)
err_close: err_close:
close(vih->fd); close(vih->fd);
vih->fd = -1; vih->fd = -1;
return;
} }
static void virtio_input_host_unrealize(DeviceState *dev) static void virtio_input_host_unrealize(DeviceState *dev)

View file

@ -584,7 +584,6 @@ static void icv_ap_write(CPUARMState *env, const ARMCPRegInfo *ri,
} }
gicv3_cpuif_virt_irq_fiq_update(cs); gicv3_cpuif_virt_irq_fiq_update(cs);
return;
} }
static uint64_t icv_bpr_read(CPUARMState *env, const ARMCPRegInfo *ri) static uint64_t icv_bpr_read(CPUARMState *env, const ARMCPRegInfo *ri)

View file

@ -448,8 +448,6 @@ static void aspeed_intc_write(void *opaque, hwaddr offset, uint64_t data,
s->regs[reg] = data; s->regs[reg] = data;
break; break;
} }
return;
} }
static uint64_t aspeed_intcio_read(void *opaque, hwaddr offset, static uint64_t aspeed_intcio_read(void *opaque, hwaddr offset,
@ -496,8 +494,6 @@ static void aspeed_intcio_write(void *opaque, hwaddr offset, uint64_t data,
s->regs[reg] = data; s->regs[reg] = data;
break; break;
} }
return;
} }

View file

@ -255,7 +255,6 @@ static void gic_write_vp(MIPSGICState *gic, uint32_t vp_index, hwaddr addr,
return; return;
bad_offset: bad_offset:
qemu_log_mask(LOG_GUEST_ERROR, "Wrong GIC offset at 0x%" PRIx64 "\n", addr); qemu_log_mask(LOG_GUEST_ERROR, "Wrong GIC offset at 0x%" PRIx64 "\n", addr);
return;
} }
static void gic_write(void *opaque, hwaddr addr, uint64_t data, unsigned size) static void gic_write(void *opaque, hwaddr addr, uint64_t data, unsigned size)

View file

@ -142,7 +142,6 @@ static void continue_send(IPMIBmcExtern *ibe)
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + 4000000000ULL); qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + 4000000000ULL);
} }
} }
return;
} }
static void extern_timeout(void *opaque) static void extern_timeout(void *opaque)
@ -231,7 +230,6 @@ static void ipmi_bmc_extern_handle_command(IPMIBmc *b,
continue_send(ibe); continue_send(ibe);
out: out:
return;
} }
static void handle_hw_op(IPMIBmcExtern *ibe, unsigned char hw_op) static void handle_hw_op(IPMIBmcExtern *ibe, unsigned char hw_op)

View file

@ -472,7 +472,6 @@ void ipmi_bmc_gen_event(IPMIBmc *b, uint8_t *evt, bool log)
ibs->msg_flags |= IPMI_BMC_MSG_FLAG_EVT_BUF_FULL; ibs->msg_flags |= IPMI_BMC_MSG_FLAG_EVT_BUF_FULL;
k->set_atn(s, 1, attn_irq_enabled(ibs)); k->set_atn(s, 1, attn_irq_enabled(ibs));
out: out:
return;
} }
static void gen_event(IPMIBmcSim *ibs, unsigned int sens_num, uint8_t deassert, static void gen_event(IPMIBmcSim *ibs, unsigned int sens_num, uint8_t deassert,
uint8_t evd1, uint8_t evd2, uint8_t evd3) uint8_t evd1, uint8_t evd2, uint8_t evd3)
@ -1014,7 +1013,6 @@ static void get_msg(IPMIBmcSim *ibs,
} }
out: out:
return;
} }
static unsigned char static unsigned char

View file

@ -146,7 +146,6 @@ static void ipmi_bt_handle_event(IPMIInterface *ii)
sizeof(ib->inmsg), ib->waiting_rsp); sizeof(ib->inmsg), ib->waiting_rsp);
} }
out: out:
return;
} }
static void ipmi_bt_handle_rsp(IPMIInterface *ii, uint8_t msg_id, static void ipmi_bt_handle_rsp(IPMIInterface *ii, uint8_t msg_id,

View file

@ -198,7 +198,6 @@ static void ipmi_kcs_handle_event(IPMIInterface *ii)
ik->data_in_reg = -1; ik->data_in_reg = -1;
IPMI_KCS_SET_IBF(ik->status_reg, 0); IPMI_KCS_SET_IBF(ik->status_reg, 0);
out_noibf: out_noibf:
return;
} }
static void ipmi_kcs_handle_rsp(IPMIInterface *ii, uint8_t msg_id, static void ipmi_kcs_handle_rsp(IPMIInterface *ii, uint8_t msg_id,

View file

@ -948,7 +948,6 @@ static void virt_cpu_unplug(HotplugHandler *hotplug_dev,
cpu_slot = virt_find_cpu_slot(MACHINE(lvms), cpu->phy_id); cpu_slot = virt_find_cpu_slot(MACHINE(lvms), cpu->phy_id);
cpu_slot->cpu = NULL; cpu_slot->cpu = NULL;
return;
} }
static void virt_cpu_plug(HotplugHandler *hotplug_dev, static void virt_cpu_plug(HotplugHandler *hotplug_dev,
@ -973,7 +972,6 @@ static void virt_cpu_plug(HotplugHandler *hotplug_dev,
cpu_slot = virt_find_cpu_slot(MACHINE(lvms), cpu->phy_id); cpu_slot = virt_find_cpu_slot(MACHINE(lvms), cpu->phy_id);
cpu_slot->cpu = CPU(dev); cpu_slot->cpu = CPU(dev);
return;
} }
static bool memhp_type_supported(DeviceState *dev) static bool memhp_type_supported(DeviceState *dev)

View file

@ -899,7 +899,6 @@ static void next_dummy_en_write(void *opaque, hwaddr addr, uint64_t val,
unsigned size) unsigned size)
{ {
/* Do nothing */ /* Do nothing */
return;
} }
static uint64_t next_dummy_en_read(void *opaque, hwaddr addr, unsigned size) static uint64_t next_dummy_en_read(void *opaque, hwaddr addr, unsigned size)

View file

@ -210,7 +210,6 @@ static uint64_t machine_id_read(void *opaque, hwaddr addr, unsigned size)
static void machine_id_write(void *opaque, hwaddr addr, uint64_t val, static void machine_id_write(void *opaque, hwaddr addr, uint64_t val,
unsigned size) unsigned size)
{ {
return;
} }
static const MemoryRegionOps machine_id_ops = { static const MemoryRegionOps machine_id_ops = {
@ -231,7 +230,6 @@ static uint64_t ramio_read(void *opaque, hwaddr addr, unsigned size)
static void ramio_write(void *opaque, hwaddr addr, uint64_t val, static void ramio_write(void *opaque, hwaddr addr, uint64_t val,
unsigned size) unsigned size)
{ {
return;
} }
static const MemoryRegionOps ramio_ops = { static const MemoryRegionOps ramio_ops = {

View file

@ -957,7 +957,6 @@ err_free_special_ops:
if (ct3d->hostvmem) { if (ct3d->hostvmem) {
address_space_destroy(&ct3d->hostvmem_as); address_space_destroy(&ct3d->hostvmem_as);
} }
return;
} }
static void ct3_exit(PCIDevice *pci_dev) static void ct3_exit(PCIDevice *pci_dev)
@ -1511,8 +1510,6 @@ void qmp_cxl_inject_uncorrectable_errors(const char *path,
stl_le_p(reg_state + R_CXL_RAS_UNC_ERR_STATUS, unc_err); stl_le_p(reg_state + R_CXL_RAS_UNC_ERR_STATUS, unc_err);
pcie_aer_inject_error(PCI_DEVICE(obj), &err); pcie_aer_inject_error(PCI_DEVICE(obj), &err);
return;
} }
void qmp_cxl_inject_correctable_error(const char *path, CxlCorErrorType type, void qmp_cxl_inject_correctable_error(const char *path, CxlCorErrorType type,
@ -1788,7 +1785,6 @@ void qmp_cxl_inject_dram_event(const char *path, CxlEventLog log, uint8_t flags,
if (cxl_event_insert(cxlds, enc_log, (CXLEventRecordRaw *)&dram)) { if (cxl_event_insert(cxlds, enc_log, (CXLEventRecordRaw *)&dram)) {
cxl_event_irq_assert(ct3d); cxl_event_irq_assert(ct3d);
} }
return;
} }
void qmp_cxl_inject_memory_module_event(const char *path, CxlEventLog log, void qmp_cxl_inject_memory_module_event(const char *path, CxlEventLog log,

View file

@ -82,7 +82,6 @@ static void sparse_mem_enter_reset(Object *obj, ResetType type)
{ {
SparseMemState *s = SPARSE_MEM(obj); SparseMemState *s = SPARSE_MEM(obj);
g_hash_table_remove_all(s->mapped); g_hash_table_remove_all(s->mapped);
return;
} }
static const MemoryRegionOps sparse_mem_ops = { static const MemoryRegionOps sparse_mem_ops = {

View file

@ -143,8 +143,6 @@ static void i2c_echo_realize(DeviceState *dev, Error **errp)
state->bus = I2C_BUS(bus); state->bus = I2C_BUS(bus);
state->bh = qemu_bh_new(i2c_echo_bh, state); state->bh = qemu_bh_new(i2c_echo_bh, state);
return;
} }
static void i2c_echo_class_init(ObjectClass *oc, void *data) static void i2c_echo_class_init(ObjectClass *oc, void *data)

View file

@ -289,8 +289,6 @@ static void ivshmem_flat_iomem_write(void *opaque, hwaddr offset,
trace_ivshmem_flat_read_write_mmr_invalid(offset); trace_ivshmem_flat_read_write_mmr_invalid(offset);
break; break;
} }
return;
} }
static const MemoryRegionOps ivshmem_flat_ops = { static const MemoryRegionOps ivshmem_flat_ops = {

View file

@ -92,8 +92,6 @@ static void cpc_write(void *opaque, hwaddr offset, uint64_t data,
"%s: Bad offset 0x%x\n", __func__, (int)offset); "%s: Bad offset 0x%x\n", __func__, (int)offset);
break; break;
} }
return;
} }
static uint64_t cpc_read(void *opaque, hwaddr offset, unsigned size) static uint64_t cpc_read(void *opaque, hwaddr offset, unsigned size)

View file

@ -400,8 +400,6 @@ void ctucan_mem_write(CtuCanCoreState *s, hwaddr addr, uint64_t val,
ctucan_update_irq(s); ctucan_update_irq(s);
} }
return;
} }
uint64_t ctucan_mem_read(CtuCanCoreState *s, hwaddr addr, unsigned size) uint64_t ctucan_mem_read(CtuCanCoreState *s, hwaddr addr, unsigned size)

View file

@ -1298,8 +1298,6 @@ static void free_list(GSList *list)
} }
g_slist_free(list); g_slist_free(list);
return;
} }
static GSList *prepare_tx_data(XlnxVersalCANFDState *s) static GSList *prepare_tx_data(XlnxVersalCANFDState *s)

View file

@ -668,7 +668,6 @@ static void imx_default_write(IMXFECState *s, uint32_t index, uint32_t value)
{ {
qemu_log_mask(LOG_GUEST_ERROR, "[%s]%s: Bad address at offset 0x%" qemu_log_mask(LOG_GUEST_ERROR, "[%s]%s: Bad address at offset 0x%"
PRIx32 "\n", TYPE_IMX_FEC, __func__, index * 4); PRIx32 "\n", TYPE_IMX_FEC, __func__, index * 4);
return;
} }
static void imx_fec_write(IMXFECState *s, uint32_t index, uint32_t value) static void imx_fec_write(IMXFECState *s, uint32_t index, uint32_t value)

View file

@ -932,7 +932,6 @@ static void vmxnet3_rx_update_descr(struct NetRxPkt *pkt,
nocsum: nocsum:
rxcd->cnc = 1; rxcd->cnc = 1;
return;
} }
static void static void

View file

@ -494,7 +494,6 @@ static void efuse_rd_addr_postw(RegisterInfo *reg, uint64_t val64)
ARRAY_FIELD_DP32(s->regs, EFUSE_ISR, RD_DONE, 1); ARRAY_FIELD_DP32(s->regs, EFUSE_ISR, RD_DONE, 1);
efuse_imr_update_irq(s); efuse_imr_update_irq(s);
return;
} }
static uint64_t efuse_cache_load_prew(RegisterInfo *reg, uint64_t val64) static uint64_t efuse_cache_load_prew(RegisterInfo *reg, uint64_t val64)

View file

@ -630,8 +630,6 @@ static void core99_instance_init(Object *obj)
object_property_set_description(obj, "via", object_property_set_description(obj, "via",
"Set VIA configuration. " "Set VIA configuration. "
"Valid values are cuda, pmu and pmu-adb"); "Valid values are cuda, pmu and pmu-adb");
return;
} }
static const TypeInfo core99_machine_info = { static const TypeInfo core99_machine_info = {

View file

@ -150,7 +150,6 @@ static void pnv_occ_common_area_write(void *opaque, hwaddr addr,
uint64_t val, unsigned width) uint64_t val, unsigned width)
{ {
/* callback function defined to occ common area write */ /* callback function defined to occ common area write */
return;
} }
static const MemoryRegionOps pnv_occ_power8_xscom_ops = { static const MemoryRegionOps pnv_occ_power8_xscom_ops = {

View file

@ -981,7 +981,6 @@ static void spapr_check_setup_free_hpt(SpaprMachineState *spapr,
/* RADIX->HASH || NOTHING->HASH : Allocate HPT */ /* RADIX->HASH || NOTHING->HASH : Allocate HPT */
spapr_setup_hpt(spapr); spapr_setup_hpt(spapr);
} }
return;
} }
#define FLAGS_MASK 0x01FULL #define FLAGS_MASK 0x01FULL

View file

@ -1735,7 +1735,6 @@ static void exit_process_output_buffer(SpaprMachineState *spapr,
getset_state(spapr, guest, vcpuid, &gsr); getset_state(spapr, guest, vcpuid, &gsr);
address_space_unmap(CPU(cpu)->as, gsb, len, true, len); address_space_unmap(CPU(cpu)->as, gsb, len, true, len);
return;
} }
static static

View file

@ -235,8 +235,6 @@ void spapr_dt_persistent_memory(SpaprMachineState *spapr, void *fdt)
spapr_dt_nvdimm(spapr, fdt, offset, nvdimm); spapr_dt_nvdimm(spapr, fdt, offset, nvdimm);
} }
g_slist_free(nvdimms); g_slist_free(nvdimms);
return;
} }
static target_ulong h_scm_read_metadata(PowerPCCPU *cpu, static target_ulong h_scm_read_metadata(PowerPCCPU *cpu,

View file

@ -597,7 +597,6 @@ static void s390_pci_iommu_replay(IOMMUMemoryRegion *iommu,
* zpci device" construct. But when we support migration of vfio-pci * zpci device" construct. But when we support migration of vfio-pci
* devices in future, we need to revisit this. * devices in future, we need to revisit this.
*/ */
return;
} }
static S390PCIIOMMU *s390_pci_get_iommu(S390pciState *s, PCIBus *bus, static S390PCIIOMMU *s390_pci_get_iommu(S390pciState *s, PCIBus *bus,

View file

@ -367,6 +367,4 @@ void s390_pci_get_clp_info(S390PCIBusDevice *pbdev)
s390_pci_read_group(pbdev, info); s390_pci_read_group(pbdev, info);
s390_pci_read_util(pbdev, info); s390_pci_read_util(pbdev, info);
s390_pci_read_pfip(pbdev, info); s390_pci_read_pfip(pbdev, info);
return;
} }

View file

@ -2226,7 +2226,6 @@ static uint64_t megasas_queue_read(void *opaque, hwaddr addr,
static void megasas_queue_write(void *opaque, hwaddr addr, static void megasas_queue_write(void *opaque, hwaddr addr,
uint64_t val, unsigned size) uint64_t val, unsigned size)
{ {
return;
} }
static const MemoryRegionOps megasas_queue_ops = { static const MemoryRegionOps megasas_queue_ops = {

View file

@ -314,7 +314,6 @@ static void vhost_scsi_realize(DeviceState *dev, Error **errp)
if (vhostfd >= 0) { if (vhostfd >= 0) {
close(vhostfd); close(vhostfd);
} }
return;
} }
static void vhost_scsi_unrealize(DeviceState *dev) static void vhost_scsi_unrealize(DeviceState *dev)

View file

@ -154,7 +154,6 @@ static void ibex_spi_host_reset(DeviceState *dev)
ibex_spi_txfifo_reset(s); ibex_spi_txfifo_reset(s);
s->init_status = true; s->init_status = true;
return;
} }
/* /*

View file

@ -996,7 +996,6 @@ static void operation_sequencer(PnvSpi *s)
} /* end of while */ } /* end of while */
/* Update sequencer index field in status.*/ /* Update sequencer index field in status.*/
s->status = SETFIELD(SPI_STS_SEQ_INDEX, s->status, seq_index); s->status = SETFIELD(SPI_STS_SEQ_INDEX, s->status, seq_index);
return;
} /* end of operation_sequencer() */ } /* end of operation_sequencer() */
/* /*
@ -1142,7 +1141,6 @@ static void pnv_spi_xscom_write(void *opaque, hwaddr addr,
qemu_log_mask(LOG_GUEST_ERROR, "pnv_spi_regs: Invalid xscom " qemu_log_mask(LOG_GUEST_ERROR, "pnv_spi_regs: Invalid xscom "
"write at 0x%" PRIx32 "\n", reg); "write at 0x%" PRIx32 "\n", reg);
} }
return;
} }
static const MemoryRegionOps pnv_spi_xscom_ops = { static const MemoryRegionOps pnv_spi_xscom_ops = {

View file

@ -211,8 +211,6 @@ static inline void tpm_tis_i2c_clear_data(TPMStateI2C *i2cst)
i2cst->tis_addr = 0xffffffff; i2cst->tis_addr = 0xffffffff;
i2cst->reg_name = NULL; i2cst->reg_name = NULL;
memset(i2cst->data, 0, sizeof(i2cst->data)); memset(i2cst->data, 0, sizeof(i2cst->data));
return;
} }
/* Send data to TPM */ /* Send data to TPM */
@ -281,8 +279,6 @@ static inline void tpm_tis_i2c_tpm_send(TPMStateI2C *i2cst)
tpm_tis_i2c_clear_data(i2cst); tpm_tis_i2c_clear_data(i2cst);
} }
return;
} }
/* Callback from TPM to indicate that response is copied */ /* Callback from TPM to indicate that response is copied */

View file

@ -1234,8 +1234,6 @@ static void usb_mtp_object_delete(MTPState *s, uint32_t handle,
default: default:
g_assert_not_reached(); g_assert_not_reached();
} }
return;
} }
static void usb_mtp_command(MTPState *s, MTPControl *c) static void usb_mtp_command(MTPState *s, MTPControl *c)

View file

@ -472,8 +472,6 @@ static void usb_serial_token_in(USBSerialState *s, USBPacket *p)
s->recv_ptr = (s->recv_ptr + len) % RECV_BUF; s->recv_ptr = (s->recv_ptr + len) % RECV_BUF;
packet_len -= len + 2; packet_len -= len + 2;
} }
return;
} }
static void usb_serial_handle_data(USBDevice *dev, USBPacket *p) static void usb_serial_handle_data(USBDevice *dev, USBPacket *p)

View file

@ -1069,7 +1069,6 @@ static void ccid_handle_bulk_out(USBCCIDState *s, USBPacket *p)
err: err:
p->status = USB_RET_STALL; p->status = USB_RET_STALL;
s->bulk_out_pos = 0; s->bulk_out_pos = 0;
return;
} }
static void ccid_bulk_in_copy_to_guest(USBCCIDState *s, USBPacket *p, static void ccid_bulk_in_copy_to_guest(USBCCIDState *s, USBPacket *p,

View file

@ -914,7 +914,6 @@ static void usb_uas_handle_data(USBDevice *dev, USBPacket *p)
err_stream: err_stream:
error_report("%s: invalid stream %d", __func__, p->stream); error_report("%s: invalid stream %d", __func__, p->stream);
p->status = USB_RET_STALL; p->status = USB_RET_STALL;
return;
} }
static void usb_uas_unrealize(USBDevice *dev) static void usb_uas_unrealize(USBDevice *dev)

View file

@ -104,7 +104,6 @@ static void vfio_display_edid_update(VFIOPCIDevice *vdev, bool enabled,
err: err:
trace_vfio_display_edid_write_error(); trace_vfio_display_edid_write_error();
return;
} }
static void vfio_display_edid_ui_info(void *opaque, uint32_t idx, static void vfio_display_edid_ui_info(void *opaque, uint32_t idx,

View file

@ -2383,7 +2383,6 @@ static void vfio_add_ext_cap(VFIOPCIDevice *vdev)
} }
g_free(config); g_free(config);
return;
} }
static bool vfio_add_capabilities(VFIOPCIDevice *vdev, Error **errp) static bool vfio_add_capabilities(VFIOPCIDevice *vdev, Error **errp)

View file

@ -418,7 +418,6 @@ fail_vfio:
abort(); abort();
fail_irqfd: fail_irqfd:
vfio_start_eventfd_injection(sbdev, irq); vfio_start_eventfd_injection(sbdev, irq);
return;
} }
/* VFIO skeleton */ /* VFIO skeleton */

View file

@ -267,7 +267,6 @@ err_virtio:
g_free(fs->req_vqs); g_free(fs->req_vqs);
virtio_cleanup(vdev); virtio_cleanup(vdev);
g_free(fs->vhost_dev.vqs); g_free(fs->vhost_dev.vqs);
return;
} }
static void vuf_device_unrealize(DeviceState *dev) static void vuf_device_unrealize(DeviceState *dev)

View file

@ -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, qemu_chr_fe_set_handlers(&scmi->chardev, NULL, NULL, vu_scmi_event, NULL,
dev, NULL, true); dev, NULL, true);
return;
} }
static void vu_scmi_device_unrealize(DeviceState *dev) static void vu_scmi_device_unrealize(DeviceState *dev)

View file

@ -128,7 +128,6 @@ err_vhost_dev:
err_virtio: err_virtio:
vhost_vsock_common_unrealize(vdev); vhost_vsock_common_unrealize(vdev);
vhost_user_cleanup(&vsock->vhost_user); vhost_user_cleanup(&vsock->vhost_user);
return;
} }
static void vuv_device_unrealize(DeviceState *dev) static void vuv_device_unrealize(DeviceState *dev)

View file

@ -654,8 +654,6 @@ static void scrub_shadow_regions(struct vhost_dev *dev,
} }
*nr_rem_reg = rm_idx; *nr_rem_reg = rm_idx;
*nr_add_reg = add_idx; *nr_add_reg = add_idx;
return;
} }
static int send_remove_regions(struct vhost_dev *dev, static int send_remove_regions(struct vhost_dev *dev,

View file

@ -288,8 +288,6 @@ static void vhost_vdpa_iommu_region_add(MemoryListener *listener,
QLIST_INSERT_HEAD(&s->iommu_list, iommu, iommu_next); QLIST_INSERT_HEAD(&s->iommu_list, iommu, iommu_next);
memory_region_iommu_replay(iommu->iommu_mr, &iommu->n); memory_region_iommu_replay(iommu->iommu_mr, &iommu->n);
return;
} }
static void vhost_vdpa_iommu_region_del(MemoryListener *listener, static void vhost_vdpa_iommu_region_del(MemoryListener *listener,

View file

@ -732,7 +732,6 @@ out:
memory_region_unref(old_sections[n_old_sections].mr); memory_region_unref(old_sections[n_old_sections].mr);
} }
g_free(old_sections); g_free(old_sections);
return;
} }
/* Adds the section data to the tmp_section structure. /* Adds the section data to the tmp_section structure.

View file

@ -1609,7 +1609,6 @@ static void handle_input(VirtIODevice *vdev, VirtQueue *vq)
if (in_elem) { if (in_elem) {
virtqueue_detach_element(vq, in_elem, 0); virtqueue_detach_element(vq, in_elem, 0);
} }
return;
} }
static uint64_t get_features(VirtIODevice *vdev, uint64_t f, Error **errp) static uint64_t get_features(VirtIODevice *vdev, uint64_t f, Error **errp)

View file

@ -3648,7 +3648,6 @@ static void virtio_queue_packed_restore_last_avail_idx(VirtIODevice *vdev,
int n) int n)
{ {
/* We don't have a reference like avail idx in shared memory */ /* We don't have a reference like avail idx in shared memory */
return;
} }
static void virtio_queue_split_restore_last_avail_idx(VirtIODevice *vdev, 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) static void virtio_queue_packed_update_used_idx(VirtIODevice *vdev, int n)
{ {
/* used idx was updated through set_last_avail_idx() */ /* used idx was updated through set_last_avail_idx() */
return;
} }
static void virtio_queue_split_update_used_idx(VirtIODevice *vdev, int n) static void virtio_queue_split_update_used_idx(VirtIODevice *vdev, int n)

View file

@ -174,7 +174,6 @@ static void sbsa_gwdt_write(void *opaque, hwaddr offset, uint64_t data,
qemu_log_mask(LOG_GUEST_ERROR, "bad address in control frame write :" qemu_log_mask(LOG_GUEST_ERROR, "bad address in control frame write :"
" 0x%x\n", (int)offset); " 0x%x\n", (int)offset);
} }
return;
} }
static void wdt_sbsa_gwdt_reset(DeviceState *dev) static void wdt_sbsa_gwdt_reset(DeviceState *dev)

View file

@ -225,7 +225,6 @@ static void aspeed_wdt_write(void *opaque, hwaddr offset, uint64_t data,
"%s: Out-of-bounds write at offset 0x%" HWADDR_PRIx "\n", "%s: Out-of-bounds write at offset 0x%" HWADDR_PRIx "\n",
__func__, offset); __func__, offset);
} }
return;
} }
static const VMStateDescription vmstate_aspeed_wdt = { static const VMStateDescription vmstate_aspeed_wdt = {

View file

@ -130,7 +130,6 @@ static inline int os_mlock(bool on_fault G_GNUC_UNUSED)
static inline void os_setup_limits(void) static inline void os_setup_limits(void)
{ {
return;
} }
#define fsync _commit #define fsync _commit

View file

@ -241,7 +241,6 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
give_sigsegv: give_sigsegv:
force_sigsegv(sig); force_sigsegv(sig);
return;
} }
static void restore_sigcontext(CPUXtensaState *env, static void restore_sigcontext(CPUXtensaState *env,

View file

@ -82,7 +82,6 @@ static void multifd_nocomp_send_cleanup(MultiFDSendParams *p, Error **errp)
{ {
g_free(p->iov); g_free(p->iov);
p->iov = NULL; p->iov = NULL;
return;
} }
static void multifd_ram_prepare_header(MultiFDSendParams *p) static void multifd_ram_prepare_header(MultiFDSendParams *p)

View file

@ -561,8 +561,6 @@ void qemu_put_buffer_at(QEMUFile *f, const uint8_t *buf, size_t buflen,
} }
stat64_add(&mig_stats.qemu_file_transferred, buflen); stat64_add(&mig_stats.qemu_file_transferred, buflen);
return;
} }

View file

@ -3963,8 +3963,6 @@ static void parse_ramblock_mapped_ram(QEMUFile *f, RAMBlock *block,
/* Skip pages array */ /* Skip pages array */
qemu_set_offset(f, block->pages_offset + length, SEEK_SET); qemu_set_offset(f, block->pages_offset + length, SEEK_SET);
return;
} }
static int parse_ramblock(QEMUFile *f, RAMBlock *block, ram_addr_t length) static int parse_ramblock(QEMUFile *f, RAMBlock *block, ram_addr_t length)

View file

@ -1328,8 +1328,6 @@ static void colo_compare_complete(UserCreatable *uc, Error **errp)
} }
QTAILQ_INSERT_TAIL(&net_compares, s, next); QTAILQ_INSERT_TAIL(&net_compares, s, next);
qemu_mutex_unlock(&colo_compare_mutex); qemu_mutex_unlock(&colo_compare_mutex);
return;
} }
static void colo_flush_packets(void *opaque, void *user_data) static void colo_flush_packets(void *opaque, void *user_data)

View file

@ -116,7 +116,6 @@ static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data)
if (kshift != kaltgrshift && kaltgr != kaltgrshift) { if (kshift != kaltgrshift && kaltgr != kaltgrshift) {
print_sym(kaltgrshift, qcode, " shift altgr"); print_sym(kaltgrshift, qcode, " shift altgr");
} }
return;
} }
static void usage(FILE *out) static void usage(FILE *out)

View file

@ -826,8 +826,6 @@ static void get_disk_properties(HANDLE vol_h, GuestDiskAddress *disk,
} }
out_free: out_free:
g_free(dev_desc); g_free(dev_desc);
return;
} }
static void get_single_disk_info(int disk_number, static void get_single_disk_info(int disk_number,
@ -891,7 +889,6 @@ static void get_single_disk_info(int disk_number,
err_close: err_close:
CloseHandle(disk_h); CloseHandle(disk_h);
return;
} }
/* VSS provider works with volumes, thus there is no difference if /* VSS provider works with volumes, thus there is no difference if
@ -2117,7 +2114,6 @@ static void ga_get_win_version(RTL_OSVERSIONINFOEXW *info, Error **errp)
rtl_get_version_t rtl_get_version = (rtl_get_version_t)fun; rtl_get_version_t rtl_get_version = (rtl_get_version_t)fun;
rtl_get_version(info); rtl_get_version(info);
return;
} }
static char *ga_get_win_name(const OSVERSIONINFOEXW *os_version, bool id) static char *ga_get_win_name(const OSVERSIONINFOEXW *os_version, bool id)

View file

@ -337,8 +337,6 @@ static void dirtylimit_adjust_throttle(CPUState *cpu)
if (!dirtylimit_done(quota, current)) { if (!dirtylimit_done(quota, current)) {
dirtylimit_set_throttle(cpu, quota, current); dirtylimit_set_throttle(cpu, quota, current);
} }
return;
} }
void dirtylimit_process(void) void dirtylimit_process(void)

View file

@ -1147,7 +1147,6 @@ static void do_setp(CPUARMState *env, uint32_t syndrome, uint32_t mtedesc,
env->ZF = 1; /* our env->ZF encoding is inverted */ env->ZF = 1; /* our env->ZF encoding is inverted */
env->CF = 0; env->CF = 0;
env->VF = 0; env->VF = 0;
return;
} }
void HELPER(setp)(CPUARMState *env, uint32_t syndrome, uint32_t mtedesc) void HELPER(setp)(CPUARMState *env, uint32_t syndrome, uint32_t mtedesc)
@ -1547,7 +1546,6 @@ static void do_cpyp(CPUARMState *env, uint32_t syndrome, uint32_t wdesc,
env->ZF = 1; /* our env->ZF encoding is inverted */ env->ZF = 1; /* our env->ZF encoding is inverted */
env->CF = 0; env->CF = 0;
env->VF = 0; env->VF = 0;
return;
} }
void HELPER(cpyp)(CPUARMState *env, uint32_t syndrome, uint32_t wdesc, void HELPER(cpyp)(CPUARMState *env, uint32_t syndrome, uint32_t wdesc,

View file

@ -284,7 +284,6 @@ void vmsr_read_thread_stat(pid_t pid,
} }
fclose(file); fclose(file);
return;
} }
/* Read QEMU stat task folder to retrieve all QEMU threads ID */ /* Read QEMU stat task folder to retrieve all QEMU threads ID */

View file

@ -3640,7 +3640,6 @@ static void gen_multi0F(DisasContext *s, X86DecodedInsn *decode)
return; return;
illegal_op: illegal_op:
gen_illegal_opcode(s); gen_illegal_opcode(s);
return;
} }
#include "decode-new.c.inc" #include "decode-new.c.inc"

View file

@ -549,8 +549,6 @@ static void whpx_set_registers(CPUState *cpu, int level)
error_report("WHPX: Failed to set virtual processor context, hr=%08lx", error_report("WHPX: Failed to set virtual processor context, hr=%08lx",
hr); hr);
} }
return;
} }
static int whpx_get_tsc(CPUState *cpu) static int whpx_get_tsc(CPUState *cpu)
@ -771,8 +769,6 @@ static void whpx_get_registers(CPUState *cpu)
} }
x86_update_hflags(env); x86_update_hflags(env);
return;
} }
static HRESULT CALLBACK whpx_emu_ioport_callback( static HRESULT CALLBACK whpx_emu_ioport_callback(
@ -1570,8 +1566,6 @@ static void whpx_vcpu_pre_run(CPUState *cpu)
" hr=%08lx", hr); " hr=%08lx", hr);
} }
} }
return;
} }
static void whpx_vcpu_post_run(CPUState *cpu) static void whpx_vcpu_post_run(CPUState *cpu)
@ -1595,8 +1589,6 @@ static void whpx_vcpu_post_run(CPUState *cpu)
vcpu->interruptable = vcpu->interruptable =
!vcpu->exit_ctx.VpContext.ExecutionState.InterruptShadow; !vcpu->exit_ctx.VpContext.ExecutionState.InterruptShadow;
return;
} }
static void whpx_vcpu_process_async_events(CPUState *cpu) static void whpx_vcpu_process_async_events(CPUState *cpu)
@ -1634,8 +1626,6 @@ static void whpx_vcpu_process_async_events(CPUState *cpu)
apic_handle_tpr_access_report(x86_cpu->apic_state, env->eip, apic_handle_tpr_access_report(x86_cpu->apic_state, env->eip,
env->tpr_access_type); env->tpr_access_type);
} }
return;
} }
static int whpx_vcpu_run(CPUState *cpu) static int whpx_vcpu_run(CPUState *cpu)
@ -2280,7 +2270,6 @@ void whpx_destroy_vcpu(CPUState *cpu)
whp_dispatch.WHvDeleteVirtualProcessor(whpx->partition, cpu->cpu_index); whp_dispatch.WHvDeleteVirtualProcessor(whpx->partition, cpu->cpu_index);
whp_dispatch.WHvEmulatorDestroyEmulator(vcpu->emulator); whp_dispatch.WHvEmulatorDestroyEmulator(vcpu->emulator);
g_free(cpu->accel); g_free(cpu->accel);
return;
} }
void whpx_vcpu_kick(CPUState *cpu) void whpx_vcpu_kick(CPUState *cpu)

View file

@ -290,7 +290,6 @@ void HELPER(m68k_movec_to)(CPUM68KState *env, uint32_t reg, uint32_t val)
/* Invalid control registers will generate an exception. */ /* Invalid control registers will generate an exception. */
raise_exception_ra(env, EXCP_ILLEGAL, 0); raise_exception_ra(env, EXCP_ILLEGAL, 0);
return;
} }
uint32_t HELPER(m68k_movec_from)(CPUM68KState *env, uint32_t reg) uint32_t HELPER(m68k_movec_from)(CPUM68KState *env, uint32_t reg)

View file

@ -374,5 +374,4 @@ void mips_semihosting(CPUMIPSState *env)
error_report("Unknown UHI operation %d", op); error_report("Unknown UHI operation %d", op);
abort(); abort();
} }
return;
} }

View file

@ -1332,7 +1332,6 @@ int kvmppc_set_interrupt(PowerPCCPU *cpu, int irq, int level)
void kvm_arch_pre_run(CPUState *cs, struct kvm_run *run) void kvm_arch_pre_run(CPUState *cs, struct kvm_run *run)
{ {
return;
} }
MemTxAttrs kvm_arch_post_run(CPUState *cs, struct kvm_run *run) MemTxAttrs kvm_arch_post_run(CPUState *cs, struct kvm_run *run)

View file

@ -221,7 +221,6 @@ static inline int kvmppc_smt_threads(void)
static inline void kvmppc_error_append_smt_possible_hint(Error *const *errp) static inline void kvmppc_error_append_smt_possible_hint(Error *const *errp)
{ {
return;
} }
static inline int kvmppc_set_smt_threads(int smt) static inline int kvmppc_set_smt_threads(int smt)
@ -259,7 +258,6 @@ static inline target_ulong kvmppc_configure_v3_mmu(PowerPCCPU *cpu,
static inline void kvmppc_set_reg_ppc_online(PowerPCCPU *cpu, static inline void kvmppc_set_reg_ppc_online(PowerPCCPU *cpu,
unsigned int online) unsigned int online)
{ {
return;
} }
static inline void kvmppc_set_reg_tb_offset(PowerPCCPU *cpu, int64_t tb_offset) static inline void kvmppc_set_reg_tb_offset(PowerPCCPU *cpu, int64_t tb_offset)
@ -456,7 +454,6 @@ static inline PowerPCCPUClass *kvm_ppc_get_host_cpu_class(void)
static inline void kvmppc_check_papr_resize_hpt(Error **errp) static inline void kvmppc_check_papr_resize_hpt(Error **errp)
{ {
return;
} }
static inline int kvmppc_resize_hpt_prepare(PowerPCCPU *cpu, static inline int kvmppc_resize_hpt_prepare(PowerPCCPU *cpu,

View file

@ -3627,7 +3627,6 @@ static void pmu_count_insns(DisasContext *ctx)
#else #else
static void pmu_count_insns(DisasContext *ctx) static void pmu_count_insns(DisasContext *ctx)
{ {
return;
} }
#endif /* #if defined(TARGET_PPC64) */ #endif /* #if defined(TARGET_PPC64) */

View file

@ -551,8 +551,6 @@ static void type2_reg_write(CPURISCVState *env, target_ulong index,
default: default:
g_assert_not_reached(); g_assert_not_reached();
} }
return;
} }
/* type 6 trigger */ /* type 6 trigger */
@ -667,8 +665,6 @@ static void type6_reg_write(CPURISCVState *env, target_ulong index,
default: default:
g_assert_not_reached(); g_assert_not_reached();
} }
return;
} }
/* icount trigger type */ /* icount trigger type */
@ -849,8 +845,6 @@ static void itrigger_reg_write(CPURISCVState *env, target_ulong index,
default: default:
g_assert_not_reached(); g_assert_not_reached();
} }
return;
} }
static int itrigger_get_adjust_count(CPURISCVState *env) static int itrigger_get_adjust_count(CPURISCVState *env)

Some files were not shown because too many files have changed in this diff Show more