]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
cleanup: Drop pointless return at end of function
authorMarkus Armbruster <armbru@redhat.com>
Mon, 7 Apr 2025 08:26:42 +0000 (10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 24 Apr 2025 07:33:42 +0000 (09:33 +0200)
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 988ad4ccebb6 (hw/loongarch/virt:
Fix cpuslot::cpu set at last in virt_cpu_plug()) resolved]

113 files changed:
accel/tcg/cpu-exec.c
block/gluster.c
block/rbd.c
block/replication.c
block/throttle-groups.c
bsd-user/signal.c
dump/win_dump.c
event-loop-base.c
hw/acpi/acpi-cpu-hotplug-stub.c
hw/acpi/acpi-mem-hotplug-stub.c
hw/acpi/acpi-nvdimm-stub.c
hw/acpi/acpi-pci-hotplug-stub.c
hw/arm/exynos4210.c
hw/arm/smmu-common.c
hw/arm/xen-stubs.c
hw/audio/asc.c
hw/core/qdev-properties-system.c
hw/cxl/cxl-host.c
hw/display/macfb.c
hw/display/tcx.c
hw/display/virtio-gpu-base.c
hw/dma/sifive_pdma.c
hw/gpio/aspeed_gpio.c
hw/gpio/bcm2838_gpio.c
hw/gpio/imx_gpio.c
hw/gpio/pl061.c
hw/hyperv/vmbus.c
hw/i2c/pm_smbus.c
hw/i386/intel_iommu.c
hw/i386/nitro_enclave.c
hw/i386/xen/xen-hvm.c
hw/input/virtio-input-host.c
hw/intc/arm_gicv3_cpuif.c
hw/intc/aspeed_intc.c
hw/intc/mips_gic.c
hw/ipmi/ipmi_bmc_extern.c
hw/ipmi/ipmi_bmc_sim.c
hw/ipmi/ipmi_bt.c
hw/ipmi/ipmi_kcs.c
hw/loongarch/virt.c
hw/m68k/next-cube.c
hw/m68k/q800.c
hw/mem/cxl_type3.c
hw/mem/sparse-mem.c
hw/misc/i2c-echo.c
hw/misc/ivshmem-flat.c
hw/misc/mips_cpc.c
hw/net/can/ctucan_core.c
hw/net/can/xlnx-versal-canfd.c
hw/net/imx_fec.c
hw/net/vmxnet3.c
hw/nvram/xlnx-versal-efuse-ctrl.c
hw/ppc/mac_newworld.c
hw/ppc/pnv_occ.c
hw/ppc/spapr_hcall.c
hw/ppc/spapr_nested.c
hw/ppc/spapr_nvdimm.c
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-vfio.c
hw/scsi/megasas.c
hw/scsi/vhost-scsi.c
hw/ssi/ibex_spi_host.c
hw/ssi/pnv_spi.c
hw/tpm/tpm_tis_i2c.c
hw/usb/dev-mtp.c
hw/usb/dev-serial.c
hw/usb/dev-smartcard-reader.c
hw/usb/dev-uas.c
hw/vfio/display.c
hw/vfio/pci.c
hw/vfio/platform.c
hw/virtio/vhost-user-fs.c
hw/virtio/vhost-user-scmi.c
hw/virtio/vhost-user-vsock.c
hw/virtio/vhost-user.c
hw/virtio/vhost-vdpa.c
hw/virtio/vhost.c
hw/virtio/virtio-nsm.c
hw/virtio/virtio.c
hw/watchdog/sbsa_gwdt.c
hw/watchdog/wdt_aspeed.c
include/system/os-win32.h
linux-user/xtensa/signal.c
migration/multifd-nocomp.c
migration/qemu-file.c
migration/ram.c
net/colo-compare.c
qemu-keymap.c
qga/commands-win32.c
system/dirtylimit.c
target/arm/tcg/helper-a64.c
target/i386/kvm/vmsr_energy.c
target/i386/tcg/translate.c
target/i386/whpx/whpx-all.c
target/m68k/helper.c
target/mips/tcg/system/mips-semi.c
target/ppc/kvm.c
target/ppc/kvm_ppc.h
target/ppc/translate.c
target/riscv/debug.c
target/s390x/cpu_models.c
target/sh4/translate.c
tests/qtest/ahci-test.c
tests/qtest/fuzz/generic_fuzz.c
tests/qtest/libqos/libqos-malloc.c
tests/qtest/libqtest.c
tests/qtest/test-x86-cpuid-compat.c
tests/unit/socket-helpers.c
tests/unit/test-qgraph.c
ui/input-linux.c
ui/vnc.c
util/main-loop.c
util/qht.c

index ef3d967e3af08fa7796136c5adabf689173076b7..8e28136392f05a949bae47fefaff724480e77574 100644 (file)
@@ -665,7 +665,6 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
 
  out_unlock_next:
     qemu_spin_unlock(&tb_next->jmp_lock);
-    return;
 }
 
 static inline bool cpu_handle_halt(CPUState *cpu)
index c6d25ae7335bcfad17fe9a8705d937a6c37a6d6d..8712aa606a4bb97f7429aed24b7f2fdd5de7d792 100644 (file)
@@ -972,8 +972,6 @@ static void qemu_gluster_reopen_commit(BDRVReopenState *state)
 
     g_free(state->opaque);
     state->opaque = NULL;
-
-    return;
 }
 
 
@@ -993,8 +991,6 @@ static void qemu_gluster_reopen_abort(BDRVReopenState *state)
 
     g_free(state->opaque);
     state->opaque = NULL;
-
-    return;
 }
 
 #ifdef CONFIG_GLUSTERFS_ZEROFILL
index af984fb7db4d0d63f95d21d695c2ed7deef1ca6f..7446e66659ee2ec330b66d270a109766ee1613f9 100644 (file)
@@ -254,7 +254,6 @@ static void qemu_rbd_parse_filename(const char *filename, QDict *options,
 done:
     g_free(buf);
     qobject_unref(keypairs);
-    return;
 }
 
 static int qemu_rbd_set_auth(rados_t cluster, BlockdevOptionsRbd *opts,
index 0020f33843adef1135ef1d9fd44b1692e926447b..d6625c51fe871b13707e3279fe905264e404d3c4 100644 (file)
@@ -176,7 +176,6 @@ static void replication_child_perm(BlockDriverState *bs, BdrvChild *c,
     *nshared = BLK_PERM_CONSISTENT_READ
                | BLK_PERM_WRITE
                | BLK_PERM_WRITE_UNCHANGED;
-    return;
 }
 
 static int64_t coroutine_fn GRAPH_RDLOCK
index 32553b39e3927eb05a8e1dcaa2daa106927880e5..9f4d252c7451013a0a9fb6d3dcab3a333ae0df5c 100644 (file)
@@ -908,7 +908,6 @@ unlock:
     qemu_mutex_unlock(&tg->lock);
     qapi_free_ThrottleLimits(argp);
     error_propagate(errp, local_err);
-    return;
 }
 
 static void throttle_group_get_limits(Object *obj, Visitor *v,
index a8cfcca130ecb9af498f7ef9ce7ddaf8bc76f489..1aa0fd79d6cacb9d3850e01070d591496064d2f5 100644 (file)
@@ -441,7 +441,6 @@ void queue_signal(CPUArchState *env, int sig, int si_type,
     ts->sync_signal.pending = sig;
     /* Signal that a new signal is pending. */
     qatomic_set(&ts->signal_pending, 1);
-    return;
 }
 
 static int fatal_signal(int sig)
index 2c2576672a5c1e8863882614aed1f2cb831dd493..3162e8bd48771af8b0e1b1571e40d9a0d888409c 100644 (file)
@@ -476,8 +476,6 @@ out_free:
     g_free(saved_ctx);
 out_cr3:
     first_x86_cpu->env.cr[3] = saved_cr3;
-
-    return;
 }
 
 #else /* !TARGET_X86_64 */
index 0cfb1c94962a5397893fb42f83f84a5c6b5fd190..ddf8400a6b78d508509f255e6111754b50cfeac6 100644 (file)
@@ -73,8 +73,6 @@ static void event_loop_base_set_param(Object *obj, Visitor *v,
     if (bc->update_params) {
         bc->update_params(base, errp);
     }
-
-    return;
 }
 
 static void event_loop_base_complete(UserCreatable *uc, Error **errp)
index c6c61bb9cd33c1486093af9787a8d0fedc006053..9872dd55e43ff69274d56200b61a69036ebe510c 100644 (file)
@@ -10,47 +10,39 @@ void acpi_switch_to_modern_cphp(AcpiCpuHotplug *gpe_cpu,
                                 CPUHotplugState *cpuhp_state,
                                 uint16_t io_port)
 {
-    return;
 }
 
 void legacy_acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner,
                                   AcpiCpuHotplug *gpe_cpu, uint16_t base)
 {
-    return;
 }
 
 void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,
                          CPUHotplugState *state, hwaddr base_addr)
 {
-    return;
 }
 
 void acpi_cpu_ospm_status(CPUHotplugState *cpu_st, ACPIOSTInfoList ***list)
 {
-    return;
 }
 
 void acpi_cpu_plug_cb(HotplugHandler *hotplug_dev,
                       CPUHotplugState *cpu_st, DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void legacy_acpi_cpu_plug_cb(HotplugHandler *hotplug_dev,
                              AcpiCpuHotplug *g, DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_cpu_unplug_cb(CPUHotplugState *cpu_st,
                         DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_cpu_unplug_request_cb(HotplugHandler *hotplug_dev,
                                 CPUHotplugState *cpu_st,
                                 DeviceState *dev, Error **errp)
 {
-    return;
 }
index 73a076a265712f8aae576fa1d1bb9a3ea0ad5e7f..7ad0fdcdf26a6f75adc2a65bb7b3bbde02fadd28 100644 (file)
@@ -7,29 +7,24 @@ const VMStateDescription vmstate_memory_hotplug;
 void acpi_memory_hotplug_init(MemoryRegion *as, Object *owner,
                               MemHotplugState *state, hwaddr io_base)
 {
-    return;
 }
 
 void acpi_memory_ospm_status(MemHotplugState *mem_st, ACPIOSTInfoList ***list)
 {
-    return;
 }
 
 void acpi_memory_plug_cb(HotplugHandler *hotplug_dev, MemHotplugState *mem_st,
                          DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_memory_unplug_cb(MemHotplugState *mem_st,
                            DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_memory_unplug_request_cb(HotplugHandler *hotplug_dev,
                                    MemHotplugState *mem_st,
                                    DeviceState *dev, Error **errp)
 {
-    return;
 }
index 8baff9be6f49215567829e9abb52eefa5aa699d2..65f491d65356785b71b46e541fe1222ad27eb344 100644 (file)
@@ -4,5 +4,4 @@
 
 void nvdimm_acpi_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev)
 {
-    return;
 }
index dcee3ad7a1bce4f7ef4f4e61cebf17813c1bd5a5..b67b4a92da7dedb19655fa9fc1194540a1e8a2bf 100644 (file)
@@ -7,37 +7,31 @@ const VMStateDescription vmstate_acpi_pcihp_pci_status;
 void acpi_pcihp_init(Object *owner, AcpiPciHpState *s, PCIBus *root_bus,
                      MemoryRegion *address_space_io, uint16_t io_base)
 {
-    return;
 }
 
 void acpi_pcihp_device_plug_cb(HotplugHandler *hotplug_dev, AcpiPciHpState *s,
                                DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_pcihp_device_pre_plug_cb(HotplugHandler *hotplug_dev,
                                    DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_pcihp_device_unplug_cb(HotplugHandler *hotplug_dev, AcpiPciHpState *s,
                                  DeviceState *dev, Error **errp)
 {
-    return;
 }
 
 void acpi_pcihp_device_unplug_request_cb(HotplugHandler *hotplug_dev,
                                          AcpiPciHpState *s, DeviceState *dev,
                                          Error **errp)
 {
-    return;
 }
 
 void acpi_pcihp_reset(AcpiPciHpState *s)
 {
-    return;
 }
 
 bool acpi_pcihp_is_hotpluggbale_bus(AcpiPciHpState *s, BusState *bus)
index b452470598b65c1fe3eae6e0cb0581eb4140fe47..0c27588116308653f31bff44ddfe709bd66581c2 100644 (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,
                                             uint64_t value, unsigned size)
 {
-    return;
 }
 
 static const MemoryRegionOps exynos4210_chipid_and_omr_ops = {
index 6e720e1b9a0b4b82c3850fd8ec9294439254e6c9..1aa2eabfbdb13b509b50e5d91cf2c70b37e8d492 100644 (file)
@@ -712,7 +712,6 @@ static void combine_tlb(SMMUTLBEntry *tlbe, SMMUTLBEntry *tlbe_s2,
     tlbe->entry.iova = iova & ~tlbe->entry.addr_mask;
     /* parent_perm has s2 perm while perm keeps s1 perm. */
     tlbe->parent_perm = tlbe_s2->entry.perm;
-    return;
 }
 
 /**
index 5551584dc208fe4dff165e8900e04a7f9961a38f..6a830435533485369fba6990722d37d44ac3af7f 100644 (file)
@@ -14,7 +14,6 @@
 void arch_handle_ioreq(XenIOState *state, ioreq_t *req)
 {
     hw_error("Invalid ioreq type 0x%x\n", req->type);
-    return;
 }
 
 void arch_xen_set_memory(XenIOState *state, MemoryRegionSection *section,
index cc205bf063ed0d3436d51bc067876cfb2aa218f3..cea7a1c0535cec6955d19d9096f81e7994e95722 100644 (file)
@@ -406,7 +406,6 @@ static void asc_fifo_write(void *opaque, hwaddr addr, uint64_t value,
     } else {
         fs->fifo[addr] = value;
     }
-    return;
 }
 
 static const MemoryRegionOps asc_fifo_ops = {
index a7dde73c29bf91d99083d5396b940ec30d72bc7f..8e11e6388b9554ba261596b6cdaba37c42384452 100644 (file)
@@ -793,7 +793,6 @@ separator_error:
     error_setg(errp, "reserved region fields must be separated with ':'");
 out:
     g_free(str);
-    return;
 }
 
 const PropertyInfo qdev_prop_reserved_region = {
index 2c6b43cd0d38fa111a2a08e76902b27b973f0d6e..e0101631744039c53fa82fabc1b8b0ddf948539b 100644 (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,
                                              g_steal_pointer(&fw));
-
-    return;
 }
 
 void cxl_fmws_link_targets(CXLState *cxl_state, Error **errp)
index e83fc863be5233dff4618ad912bc041dd23f2d7b..b08eb06cbd133dd8be0d004eea24422f231fad80 100644 (file)
@@ -383,7 +383,6 @@ static void macfb_sense_write(MacfbState *s, uint32_t val)
     s->regs[DAFB_MODE_SENSE >> 2] = val;
 
     trace_macfb_sense_write(val);
-    return;
 }
 
 static void macfb_update_mode(MacfbState *s)
index 2cfc1e8f01d0f8dc761d10417afe560e8bdc7f16..5968d33e4859c8fcd9c276d1388b3d645856eeb1 100644 (file)
@@ -729,7 +729,6 @@ static uint64_t tcx_dummy_readl(void *opaque, hwaddr addr,
 static void tcx_dummy_writel(void *opaque, hwaddr addr,
                          uint64_t val, unsigned size)
 {
-    return;
 }
 
 static const MemoryRegionOps tcx_dummy_ops = {
index 7827536ac4625c06c41be417911b2d24b939cbf7..321a6f4998b4e0fee32a7bcfd5491899e7dc8afd 100644 (file)
@@ -110,7 +110,6 @@ static void virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info)
 
     /* send event to guest */
     virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY);
-    return;
 }
 
 static void
index 25b3d6a155abbc5006b3b6eebd8ac2a5d7350078..a115af8d60fcc350b5c9085d1a2fe656fcac62cb 100644 (file)
@@ -152,7 +152,6 @@ done:
 error:
     s->chan[ch].state = DMA_CHAN_STATE_ERROR;
     s->chan[ch].control |= CONTROL_ERR;
-    return;
 }
 
 static inline void sifive_pdma_update_irq(SiFivePDMAState *s, int ch)
index a5b3f454e800dc9440600562b6295b069cb536fb..aedaf5238bfe2e253769d5b7145aea1e067001dc 100644 (file)
@@ -800,7 +800,6 @@ static void aspeed_gpio_write_index_mode(void *opaque, hwaddr offset,
         return;
     }
     aspeed_gpio_update(s, set, set->data_value, UINT32_MAX);
-    return;
 }
 
 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;
     }
     aspeed_gpio_update(s, set, set->data_value, UINT32_MAX);
-    return;
 }
 
 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);
-    return;
 }
 
 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);
         break;
     }
-
-    return;
 }
 
 /* Setup functions */
index 0a1739fc468cd8e1d412fe277ebd8fb3ec436932..53be8f2d23fa135a66a412ef6246285d4f38f6b8 100644 (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",
                   TYPE_BCM2838_GPIO, __func__, offset);
     }
-    return;
 }
 
 static void bcm2838_gpio_reset(DeviceState *dev)
index 549a281ed7941d2b3d4144a2be534a9161e5fff5..8c8299c4c4fb484920e34b61a2ba5267d5ebcc17 100644 (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);
         break;
     }
-
-    return;
 }
 
 static const MemoryRegionOps imx_gpio_ops = {
index 60ce4a7f6287e06b2d33f475cc3c623fa969d98f..2e69785f2ad01200c6e790581fdf5756c998b38e 100644 (file)
@@ -443,7 +443,6 @@ static void pl061_write(void *opaque, hwaddr offset,
         return;
     }
     pl061_update(s);
-    return;
 }
 
 static void pl061_enter_reset(Object *obj, ResetType type)
index 12a7dc43128bb7a3b58e96e7eaf1a3e20b0a00f3..f195e56c832c70dedef5f260c619c0fa555d3f18 100644 (file)
@@ -2073,7 +2073,6 @@ static void send_unload(VMBus *vmbus)
     qemu_mutex_unlock(&vmbus->rx_queue_lock);
 
     post_msg(vmbus, &msg, sizeof(msg));
-    return;
 }
 
 static bool complete_unload(VMBus *vmbus)
index 3eed8110b95ad27b263f089bbb1dfc3b81a34007..4e685fd26e7dd41674873bbcb0a675bd001b429f 100644 (file)
@@ -205,7 +205,6 @@ out:
 
 error:
     s->smb_stat |= STS_DEV_ERR;
-    return;
 }
 
 static void smb_transaction_start(PMSMBus *s)
index dffd7ee885214adab7b3aee956f7aad3879b7530..0608aec8c5e4b97bf5e6bdb91a215ac402dbe522 100644 (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),
                                     PCI_FUNC(vtd_as->devfn));
     }
-
-    return;
 }
 
 static void vtd_cap_init(IntelIOMMUState *s)
index a058608afcb84efc09e1d30233a8a1f5ebd8491c..4b69f265cc40b05477c2aa519b40f4484ba26ed4 100644 (file)
@@ -203,7 +203,6 @@ static void x86_load_eif(X86MachineState *x86ms, FWCfgState *fw_cfg,
 
     unlink(machine->kernel_filename);
     unlink(machine->initrd_filename);
-    return;
 }
 
 static bool create_memfd_backend(MachineState *ms, const char *path,
index d4516acec699d21477689008f8363ab4fd0a2fbb..ceb2242aa71008769175d3e39a3c31d0b5b341b2 100644 (file)
@@ -758,6 +758,4 @@ void arch_handle_ioreq(XenIOState *state, ioreq_t *req)
     default:
         hw_error("Invalid ioreq type 0x%x\n", req->type);
     }
-
-    return;
 }
index 8bfb17f3c43cf76861a5ec62247d8990591e7ea8..b21a79046edd8bf4d2b53a5275f0e0630c01ecff 100644 (file)
@@ -178,7 +178,6 @@ static void virtio_input_host_realize(DeviceState *dev, Error **errp)
 err_close:
     close(vih->fd);
     vih->fd = -1;
-    return;
 }
 
 static void virtio_input_host_unrealize(DeviceState *dev)
index de37465bc8791993436f0b067b18364f05ccca27..4b4cf091570534c787a48390cb3bf90138bc442f 100644 (file)
@@ -584,7 +584,6 @@ static void icv_ap_write(CPUARMState *env, const ARMCPRegInfo *ri,
     }
 
     gicv3_cpuif_virt_irq_fiq_update(cs);
-    return;
 }
 
 static uint64_t icv_bpr_read(CPUARMState *env, const ARMCPRegInfo *ri)
index f17bf439256a7e32112937e47aa1017d71f086c5..bae7dc95ea4393d0411835d2968de5fe46f03327 100644 (file)
@@ -448,8 +448,6 @@ static void aspeed_intc_write(void *opaque, hwaddr offset, uint64_t data,
         s->regs[reg] = data;
         break;
     }
-
-    return;
 }
 
 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;
         break;
     }
-
-    return;
 }
 
 
index 5e3cbeabece1891f352b673f5578c573467d26f1..bd1dedd4b99b1af609d24357a5c747fc34489008 100644 (file)
@@ -255,7 +255,6 @@ static void gic_write_vp(MIPSGICState *gic, uint32_t vp_index, hwaddr addr,
     return;
 bad_offset:
     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)
index 3e9f8c5a5053a7d8d4cb6948e4df129fd4dbae13..22cb9b590bbbe7db9bed2b2b643e383f70d86e7d 100644 (file)
@@ -142,7 +142,6 @@ static void continue_send(IPMIBmcExtern *ibe)
                          qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + 4000000000ULL);
         }
     }
-    return;
 }
 
 static void extern_timeout(void *opaque)
@@ -231,7 +230,6 @@ static void ipmi_bmc_extern_handle_command(IPMIBmc *b,
     continue_send(ibe);
 
  out:
-    return;
 }
 
 static void handle_hw_op(IPMIBmcExtern *ibe, unsigned char hw_op)
index 1c60a7183196583df7641855a9c3b7bb8d44b226..c6a85e8cd1641d53f420eed91526f769f85daa41 100644 (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;
     k->set_atn(s, 1, attn_irq_enabled(ibs));
  out:
-    return;
 }
 static void gen_event(IPMIBmcSim *ibs, unsigned int sens_num, uint8_t deassert,
                       uint8_t evd1, uint8_t evd2, uint8_t evd3)
@@ -1014,7 +1013,6 @@ static void get_msg(IPMIBmcSim *ibs,
     }
 
 out:
-    return;
 }
 
 static unsigned char
index 28cf6ab21859f2ef1b145e0421726655851e7e61..5cf12c59a83fcb633dd8d2d702c01e301e58487a 100644 (file)
@@ -146,7 +146,6 @@ static void ipmi_bt_handle_event(IPMIInterface *ii)
                            sizeof(ib->inmsg), ib->waiting_rsp);
     }
  out:
-    return;
 }
 
 static void ipmi_bt_handle_rsp(IPMIInterface *ii, uint8_t msg_id,
index 578dd7cef346fee4a015a3cfd93270e946be2221..ae549fb8642f1a7db527c79aa66980cdc45cfa9e 100644 (file)
@@ -198,7 +198,6 @@ static void ipmi_kcs_handle_event(IPMIInterface *ii)
     ik->data_in_reg = -1;
     IPMI_KCS_SET_IBF(ik->status_reg, 0);
  out_noibf:
-    return;
 }
 
 static void ipmi_kcs_handle_rsp(IPMIInterface *ii, uint8_t msg_id,
index 65c9027feb28b488a033d9e14f9ef000a77240e3..b2793c803ebb389f62b3729fe5903ebc12e9c927 100644 (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->cpu = NULL;
-    return;
 }
 
 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->cpu = CPU(dev);
-    return;
 }
 
 static bool memhp_type_supported(DeviceState *dev)
index 0570e4a76f1bfdd88941df1c4d9d802b95df53b4..7ea7e91032e396c40103a621c37b4314050355b1 100644 (file)
@@ -899,7 +899,6 @@ static void next_dummy_en_write(void *opaque, hwaddr addr, uint64_t val,
                                 unsigned size)
 {
     /* Do nothing */
-    return;
 }
 
 static uint64_t next_dummy_en_read(void *opaque, hwaddr addr, unsigned size)
index aeed4c8ddb8a555cdc5f0016b528aac460a53eca..1e5b0e21dfaf08802209e76db524b17410125a7d 100644 (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,
                              unsigned size)
 {
-    return;
 }
 
 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,
                         unsigned size)
 {
-    return;
 }
 
 static const MemoryRegionOps ramio_ops = {
index 6fffa21ead1f8c29009c498dc6f94f38f69e6ba6..43aa02ab2ae1a2c61591b7a16a38ebc0ec7ed69a 100644 (file)
@@ -957,7 +957,6 @@ err_free_special_ops:
     if (ct3d->hostvmem) {
         address_space_destroy(&ct3d->hostvmem_as);
     }
-    return;
 }
 
 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);
     pcie_aer_inject_error(PCI_DEVICE(obj), &err);
-
-    return;
 }
 
 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)) {
         cxl_event_irq_assert(ct3d);
     }
-    return;
 }
 
 void qmp_cxl_inject_memory_module_event(const char *path, CxlEventLog log,
index 6a9a591370a24fbb3b0d62ee28cdb48b59277be8..8bed5dbe16d06a952ba7684652b6abd001aa12f0 100644 (file)
@@ -82,7 +82,6 @@ static void sparse_mem_enter_reset(Object *obj, ResetType type)
 {
     SparseMemState *s = SPARSE_MEM(obj);
     g_hash_table_remove_all(s->mapped);
-    return;
 }
 
 static const MemoryRegionOps sparse_mem_ops = {
index 65d10029dc7cd52772f27c671377ba514bdedeca..fcd407dfc6f5c6e43513382a9d11757f736fa479 100644 (file)
@@ -143,8 +143,6 @@ static void i2c_echo_realize(DeviceState *dev, Error **errp)
 
     state->bus = I2C_BUS(bus);
     state->bh = qemu_bh_new(i2c_echo_bh, state);
-
-    return;
 }
 
 static void i2c_echo_class_init(ObjectClass *oc, void *data)
index 40309a8ff384338a885fa2d29392cfc5840fe3c7..a0ac7543a24083e981f1b303b823fa622d627c32 100644 (file)
@@ -289,8 +289,6 @@ static void ivshmem_flat_iomem_write(void *opaque, hwaddr offset,
         trace_ivshmem_flat_read_write_mmr_invalid(offset);
         break;
     }
-
-    return;
 }
 
 static const MemoryRegionOps ivshmem_flat_ops = {
index 772b8c0017d72001e29f68a13a9540ee6fd86068..b7a13d1afbea27eb54d4037cd663d9624ee0c4f1 100644 (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);
         break;
     }
-
-    return;
 }
 
 static uint64_t cpc_read(void *opaque, hwaddr offset, unsigned size)
index 4402d4cb1f738b8ff41943e04e011d0baa135b4f..17131a4e18fa90a9c44ac4143c15ae66224ac398 100644 (file)
@@ -400,8 +400,6 @@ void ctucan_mem_write(CtuCanCoreState *s, hwaddr addr, uint64_t val,
 
         ctucan_update_irq(s);
     }
-
-    return;
 }
 
 uint64_t ctucan_mem_read(CtuCanCoreState *s, hwaddr addr, unsigned size)
index dc242e92155f5985cdec9dcad6f4232c6a658549..b5a4a4af7e246aa0c62e8d8f4249c7b802d2eb7e 100644 (file)
@@ -1298,8 +1298,6 @@ static void free_list(GSList *list)
     }
 
     g_slist_free(list);
-
-    return;
 }
 
 static GSList *prepare_tx_data(XlnxVersalCANFDState *s)
index 0f0afda58ae19ee4362045234c05a6dad4d5fdbb..b7c9ee0b9a16e61ce00076b409cdc5cf7a111457 100644 (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%"
                   PRIx32 "\n", TYPE_IMX_FEC, __func__, index * 4);
-    return;
 }
 
 static void imx_fec_write(IMXFECState *s, uint32_t index, uint32_t value)
index 7abed66469022a6c4e6286118479995d8c4d9093..f370d4a2eccd672a9f16205ef1c329ff9c47d4b8 100644 (file)
@@ -932,7 +932,6 @@ static void vmxnet3_rx_update_descr(struct NetRxPkt *pkt,
 
 nocsum:
     rxcd->cnc = 1;
-    return;
 }
 
 static void
index 3246eb3ca6e0b70232d9049be4c2f0d15029ca9f..ff4d544ad6b9f138aeee165113a7fe4b4d7a0972 100644 (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);
     efuse_imr_update_irq(s);
-    return;
 }
 
 static uint64_t efuse_cache_load_prew(RegisterInfo *reg, uint64_t val64)
index 2d5309d6f559539baf860fbd1d4d2a82d3dd46dd..8109e213a17c7f64642be372c7805c94c98f627f 100644 (file)
@@ -630,8 +630,6 @@ static void core99_instance_init(Object *obj)
     object_property_set_description(obj, "via",
                                     "Set VIA configuration. "
                                     "Valid values are cuda, pmu and pmu-adb");
-
-    return;
 }
 
 static const TypeInfo core99_machine_info = {
index 177c5e514b7428888b38473fe6674efd362fa14e..0c9d3daec2480f8aa441c7cfc1ec8842e8e469ac 100644 (file)
@@ -150,7 +150,6 @@ static void pnv_occ_common_area_write(void *opaque, hwaddr addr,
                                              uint64_t val, unsigned width)
 {
     /* callback function defined to occ common area write */
-    return;
 }
 
 static const MemoryRegionOps pnv_occ_power8_xscom_ops = {
index 406aea4ecbeb2a0a0efe5c58dcb852771635dbab..29453a880e4847505dfe7c74d175af20fc851d77 100644 (file)
@@ -981,7 +981,6 @@ static void spapr_check_setup_free_hpt(SpaprMachineState *spapr,
         /* RADIX->HASH || NOTHING->HASH : Allocate HPT */
         spapr_setup_hpt(spapr);
     }
-    return;
 }
 
 #define FLAGS_MASK              0x01FULL
index 201f62920332d2481de6e1edf0ad59f45895ccd4..3797220a295314821726bf90cc4e9eaf82ebb797 100644 (file)
@@ -1735,7 +1735,6 @@ static void exit_process_output_buffer(SpaprMachineState *spapr,
     getset_state(spapr, guest, vcpuid, &gsr);
 
     address_space_unmap(CPU(cpu)->as, gsb, len, true, len);
-    return;
 }
 
 static
index 6f875d73b25e7d437c0066ca5255fda77de9c65b..6e93ff9b331ad592eb619495eff0d23d3b98cd05 100644 (file)
@@ -235,8 +235,6 @@ void spapr_dt_persistent_memory(SpaprMachineState *spapr, void *fdt)
         spapr_dt_nvdimm(spapr, fdt, offset, nvdimm);
     }
     g_slist_free(nvdimms);
-
-    return;
 }
 
 static target_ulong h_scm_read_metadata(PowerPCCPU *cpu,
index 2591ee49c11f8667d10e4dc0a2678f0dc45d57f2..d96819f1a4ef2763713f4d9249e950262d1a3ab1 100644 (file)
@@ -597,7 +597,6 @@ static void s390_pci_iommu_replay(IOMMUMemoryRegion *iommu,
      * zpci device" construct. But when we support migration of vfio-pci
      * devices in future, we need to revisit this.
      */
-    return;
 }
 
 static S390PCIIOMMU *s390_pci_get_iommu(S390pciState *s, PCIBus *bus,
index 6236ac7f1e686c9774ade172bf57a1e526b59939..db152a625253a0f4047353000ff3bafca1f09938 100644 (file)
@@ -367,6 +367,4 @@ void s390_pci_get_clp_info(S390PCIBusDevice *pbdev)
     s390_pci_read_group(pbdev, info);
     s390_pci_read_util(pbdev, info);
     s390_pci_read_pfip(pbdev, info);
-
-    return;
 }
index 9f3b30e6ce26ac7757c9f8f4e942ea6e257284ff..d56bfc711d8afc23931b7b9c2ae8b18f8c56f808 100644 (file)
@@ -2226,7 +2226,6 @@ static uint64_t megasas_queue_read(void *opaque, hwaddr addr,
 static void megasas_queue_write(void *opaque, hwaddr addr,
                                uint64_t val, unsigned size)
 {
-    return;
 }
 
 static const MemoryRegionOps megasas_queue_ops = {
index 8039d13fd954e6f91b638be803330939a4544a88..66e0c21c229c03afc8820c0a3b1234d4a94fd0cf 100644 (file)
@@ -314,7 +314,6 @@ static void vhost_scsi_realize(DeviceState *dev, Error **errp)
     if (vhostfd >= 0) {
         close(vhostfd);
     }
-    return;
 }
 
 static void vhost_scsi_unrealize(DeviceState *dev)
index 46c7b633c266ecd0859bb4af60bbd3feabd3a3ad..6b28cda2002a2ede6316b6e7cc5f54378d9138aa 100644 (file)
@@ -154,7 +154,6 @@ static void ibex_spi_host_reset(DeviceState *dev)
     ibex_spi_txfifo_reset(s);
 
     s->init_status = true;
-    return;
 }
 
 /*
index 126070393eec5b0e187f1c5a54cf8136d0d48d3b..367a2ff3bb318cec82bd3d1efb4630c1be3e4ba1 100644 (file)
@@ -996,7 +996,6 @@ static void operation_sequencer(PnvSpi *s)
     } /* end of while */
     /* Update sequencer index field in status.*/
     s->status = SETFIELD(SPI_STS_SEQ_INDEX, s->status, seq_index);
-    return;
 } /* 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 "
                  "write at 0x%" PRIx32 "\n", reg);
     }
-    return;
 }
 
 static const MemoryRegionOps pnv_spi_xscom_ops = {
index 504328e3b0dc8ea3dc541caf621c7a5b0e704ab5..92d3de1ea37bf8aee3dc6089288192c10d7097ec 100644 (file)
@@ -211,8 +211,6 @@ static inline void tpm_tis_i2c_clear_data(TPMStateI2C *i2cst)
     i2cst->tis_addr = 0xffffffff;
     i2cst->reg_name = NULL;
     memset(i2cst->data, 0, sizeof(i2cst->data));
-
-    return;
 }
 
 /* Send data to TPM */
@@ -281,8 +279,6 @@ static inline void tpm_tis_i2c_tpm_send(TPMStateI2C *i2cst)
 
         tpm_tis_i2c_clear_data(i2cst);
     }
-
-    return;
 }
 
 /* Callback from TPM to indicate that response is copied */
index 326c92a43d0182da06a472001c76a9bfb47a96b4..4cd14c3df48dd1e0d83e8b392926e672a5d902f9 100644 (file)
@@ -1234,8 +1234,6 @@ static void usb_mtp_object_delete(MTPState *s, uint32_t handle,
     default:
         g_assert_not_reached();
     }
-
-    return;
 }
 
 static void usb_mtp_command(MTPState *s, MTPControl *c)
index aa50a92e26ff11a1d82f990dcbf9723883970eb5..31f6cf5b3121a75b4127ae3471f6375f2f3dd0b2 100644 (file)
@@ -472,8 +472,6 @@ static void usb_serial_token_in(USBSerialState *s, USBPacket *p)
         s->recv_ptr = (s->recv_ptr + len) % RECV_BUF;
         packet_len -= len + 2;
     }
-
-    return;
 }
 
 static void usb_serial_handle_data(USBDevice *dev, USBPacket *p)
index 73deb3ce839e8a9e64c232bbdb3be5a25760a9e0..84ca8c48e23a4bc7ac8f7ef25a25685b927b035e 100644 (file)
@@ -1069,7 +1069,6 @@ static void ccid_handle_bulk_out(USBCCIDState *s, USBPacket *p)
 err:
     p->status = USB_RET_STALL;
     s->bulk_out_pos = 0;
-    return;
 }
 
 static void ccid_bulk_in_copy_to_guest(USBCCIDState *s, USBPacket *p,
index 44e30013d73c47cc123af3b64f1978c7ab11bc54..b1d6b6ecc30454b8c9181631c9013704de751f8a 100644 (file)
@@ -914,7 +914,6 @@ static void usb_uas_handle_data(USBDevice *dev, USBPacket *p)
 err_stream:
     error_report("%s: invalid stream %d", __func__, p->stream);
     p->status = USB_RET_STALL;
-    return;
 }
 
 static void usb_uas_unrealize(USBDevice *dev)
index ea87830fe0d5fc66f3f27a16bde5d75b7b6280c0..4fdcef505da59477e52df14ff9e611797bac162c 100644 (file)
@@ -104,7 +104,6 @@ static void vfio_display_edid_update(VFIOPCIDevice *vdev, bool enabled,
 
 err:
     trace_vfio_display_edid_write_error();
-    return;
 }
 
 static void vfio_display_edid_ui_info(void *opaque, uint32_t idx,
index 7f1532fbed9aed2eae2c98f6fd79a9056ff1e84f..f87f3ccbe1546ae3ae01b55470fab4feb5262de5 100644 (file)
@@ -2383,7 +2383,6 @@ static void vfio_add_ext_cap(VFIOPCIDevice *vdev)
     }
 
     g_free(config);
-    return;
 }
 
 static bool vfio_add_capabilities(VFIOPCIDevice *vdev, Error **errp)
index 67bc57409c1f5a6978690c3dc07d249ea0248aa0..7b4e100e275bf564971d86553c136b0fa523b93d 100644 (file)
@@ -418,7 +418,6 @@ fail_vfio:
     abort();
 fail_irqfd:
     vfio_start_eventfd_injection(sbdev, irq);
-    return;
 }
 
 /* VFIO skeleton */
index 3f00d79ed016cb038b26972f2b53872d358994ad..0e8d4b3823a24731616af761341d0369b04ddf70 100644 (file)
@@ -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)
index 410a936ca74708ade10e60206bec8b3714007cd3..04cd36dd2e887eb48f82f001dd858039b0ee7713 100644 (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,
                              dev, NULL, true);
-
-    return;
 }
 
 static void vu_scmi_device_unrealize(DeviceState *dev)
index 293273080b47b194cc0b29ce70ebbb05889e083a..d21cd4b516e410640d87956ef8f7cb12f63ac9d9 100644 (file)
@@ -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)
index 267b612587ac7cc027834dc7e9b2347fe4862d49..fdc01ab99e1623b209e46f6fa48ceec1ca543bb9 100644 (file)
@@ -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,
index 7efbde3d4c1c49b547b1452969f857514efb6eb4..8b45756ae7d2608905d38275a81824690c0fd7de 100644 (file)
@@ -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,
index 6aa72fd434ae1981abecd4a250277a687ebecb96..4cae7c16644bc66afd3ae44ed3f1f7fc7a8fc802 100644 (file)
@@ -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.
index b22aa74e34d228bbacd5db2fc8eb6e2d9bcb9960..accf7334e36277bd429331199dc617d4e91ad21d 100644 (file)
@@ -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)
index 85110bce37443bb46c4159761af112d0dba466b4..ffc12635ae5ae9cab0aa14cbf234705e15e50b61 100644 (file)
@@ -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)
index 65ac42a1870b4e1893f2f0d067c6a196fcdc7f14..1dd21392a9b453659d738eec0727260172e41a41 100644 (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 :"
                 " 0x%x\n", (int)offset);
     }
-    return;
 }
 
 static void wdt_sbsa_gwdt_reset(DeviceState *dev)
index d94b83c109347aff9518847e00526e1fb259ee7c..a503b2aea7a692b3530cef254422748c471a7fb4 100644 (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",
                       __func__, offset);
     }
-    return;
 }
 
 static const VMStateDescription vmstate_aspeed_wdt = {
index bc623061d82112ff3905bb3c3ab477fdac617c96..3aa6cee4c232cc1ebebee0a1aba485cc81cce5bb 100644 (file)
@@ -130,7 +130,6 @@ static inline int os_mlock(bool on_fault G_GNUC_UNUSED)
 
 static inline void os_setup_limits(void)
 {
-    return;
 }
 
 #define fsync _commit
index 6514b8dd57f350915933943384666b53bb3d73f6..ef8b0c3a27984ba0538832dac790f6707926da8b 100644 (file)
@@ -241,7 +241,6 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
 
 give_sigsegv:
     force_sigsegv(sig);
-    return;
 }
 
 static void restore_sigcontext(CPUXtensaState *env,
index ffe75256c9fbe459dee4eb4aa8f80ae013ff2d87..d0f38b410c245241c9ff887a9d213eae304c5b34 100644 (file)
@@ -82,7 +82,6 @@ static void multifd_nocomp_send_cleanup(MultiFDSendParams *p, Error **errp)
 {
     g_free(p->iov);
     p->iov = NULL;
-    return;
 }
 
 static void multifd_ram_prepare_header(MultiFDSendParams *p)
index 1303a5bf583be8e5a288a6073145e61e9120ae80..b6ac190034f777dbde0da1598483a892089d7538 100644 (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);
-
-    return;
 }
 
 
index 424df6d9f133c8e492c8253f7145dc3bd7781cba..dc909f5eef35f91bda7e3deba98f1d466f64c460 100644 (file)
@@ -3963,8 +3963,6 @@ static void parse_ramblock_mapped_ram(QEMUFile *f, RAMBlock *block,
 
     /* Skip pages array */
     qemu_set_offset(f, block->pages_offset + length, SEEK_SET);
-
-    return;
 }
 
 static int parse_ramblock(QEMUFile *f, RAMBlock *block, ram_addr_t length)
index 165610bfe24481e3ce1e1eb496ae80ffd3037d2e..893beed528e81529fd89bcfca38fbac6da26e37f 100644 (file)
@@ -1328,8 +1328,6 @@ static void colo_compare_complete(UserCreatable *uc, Error **errp)
     }
     QTAILQ_INSERT_TAIL(&net_compares, s, next);
     qemu_mutex_unlock(&colo_compare_mutex);
-
-    return;
 }
 
 static void colo_flush_packets(void *opaque, void *user_data)
index 6707067fea0427eacfeffc284fcf8659773f35a9..1c081db287048f4512c1c7ce15b40eb96f243d27 100644 (file)
@@ -116,7 +116,6 @@ static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data)
     if (kshift != kaltgrshift && kaltgr != kaltgrshift) {
         print_sym(kaltgrshift, qcode, " shift altgr");
     }
-    return;
 }
 
 static void usage(FILE *out)
index 749fdf88952f3cebd72e1b88573c7d5d9860fdf8..d4482538ec545a1fcaaf5abbe552a22d8c7dc795 100644 (file)
@@ -826,8 +826,6 @@ static void get_disk_properties(HANDLE vol_h, GuestDiskAddress *disk,
     }
 out_free:
     g_free(dev_desc);
-
-    return;
 }
 
 static void get_single_disk_info(int disk_number,
@@ -891,7 +889,6 @@ static void get_single_disk_info(int disk_number,
 
 err_close:
     CloseHandle(disk_h);
-    return;
 }
 
 /* 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(info);
-    return;
 }
 
 static char *ga_get_win_name(const OSVERSIONINFOEXW *os_version, bool id)
index 7dedef8dd4ab5bf785e47531dd0452c5c887ece4..1626fa5617887cb624aa97405838c0aff5cccde1 100644 (file)
@@ -337,8 +337,6 @@ static void dirtylimit_adjust_throttle(CPUState *cpu)
     if (!dirtylimit_done(quota, current)) {
         dirtylimit_set_throttle(cpu, quota, current);
     }
-
-    return;
 }
 
 void dirtylimit_process(void)
index 9244848efed052578e38f1b737ca2b6c8694e8d5..ad3c4f38a1ba9345439d5f1898a2a9db53206fbe 100644 (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->CF = 0;
     env->VF = 0;
-    return;
 }
 
 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->CF = 0;
     env->VF = 0;
-    return;
 }
 
 void HELPER(cpyp)(CPUARMState *env, uint32_t syndrome, uint32_t wdesc,
index f499ec6e8b05d801946879f0735ab6d023fd16a2..d6aad5246b66b4bd15466a0dd10ad1044c33d2a0 100644 (file)
@@ -284,7 +284,6 @@ void vmsr_read_thread_stat(pid_t pid,
     }
 
     fclose(file);
-    return;
 }
 
 /* Read QEMU stat task folder to retrieve all QEMU threads ID */
index abe210cc4ef5afbef99ed2a7bb6e165fc0e292a8..1bbf09aca738eaf063d16df57dca4624a56a1c3d 100644 (file)
@@ -3640,7 +3640,6 @@ static void gen_multi0F(DisasContext *s, X86DecodedInsn *decode)
     return;
  illegal_op:
     gen_illegal_opcode(s);
-    return;
 }
 
 #include "decode-new.c.inc"
index 41fb8c5a4e5a0106338b99e559d7bdd1171e6daf..e44d044ecba6492161a890d52e9872cf1c58b089 100644 (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",
                      hr);
     }
-
-    return;
 }
 
 static int whpx_get_tsc(CPUState *cpu)
@@ -771,8 +769,6 @@ static void whpx_get_registers(CPUState *cpu)
     }
 
     x86_update_hflags(env);
-
-    return;
 }
 
 static HRESULT CALLBACK whpx_emu_ioport_callback(
@@ -1570,8 +1566,6 @@ static void whpx_vcpu_pre_run(CPUState *cpu)
                          " hr=%08lx", hr);
         }
     }
-
-    return;
 }
 
 static void whpx_vcpu_post_run(CPUState *cpu)
@@ -1595,8 +1589,6 @@ static void whpx_vcpu_post_run(CPUState *cpu)
 
     vcpu->interruptable =
         !vcpu->exit_ctx.VpContext.ExecutionState.InterruptShadow;
-
-    return;
 }
 
 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,
                                       env->tpr_access_type);
     }
-
-    return;
 }
 
 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.WHvEmulatorDestroyEmulator(vcpu->emulator);
     g_free(cpu->accel);
-    return;
 }
 
 void whpx_vcpu_kick(CPUState *cpu)
index 0bf574830f9e72ac6f1caeaf11e92936632f4c6d..a37d3f6a96d16e7c38bc265292508180d431177b 100644 (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. */
     raise_exception_ra(env, EXCP_ILLEGAL, 0);
-    return;
 }
 
 uint32_t HELPER(m68k_movec_from)(CPUM68KState *env, uint32_t reg)
index df0c3256d9ed3ded59da15f978592010610bc89a..e822a4261455f97c48c99a3a8a7cc48b0abc723a 100644 (file)
@@ -374,5 +374,4 @@ void mips_semihosting(CPUMIPSState *env)
         error_report("Unknown UHI operation %d", op);
         abort();
     }
-    return;
 }
index 992356cb7593cd89b61ed132521c9c2daa03402a..80f6c185bc2f3046fafbb363be0d71f1182a4399 100644 (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)
 {
-    return;
 }
 
 MemTxAttrs kvm_arch_post_run(CPUState *cs, struct kvm_run *run)
index a8768c1dfd8cc0d11558a80088081d7da836f989..a1d9ce9f9aa7dc1f0bedfa044d5a1f1818f93eaa 100644 (file)
@@ -221,7 +221,6 @@ static inline int kvmppc_smt_threads(void)
 
 static inline void kvmppc_error_append_smt_possible_hint(Error *const *errp)
 {
-    return;
 }
 
 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,
                                              unsigned int online)
 {
-    return;
 }
 
 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)
 {
-    return;
 }
 
 static inline int kvmppc_resize_hpt_prepare(PowerPCCPU *cpu,
index a52cbc869ae034b3f4bebe3e7f248aa95585f3d0..a9ff5020a287ed005ee138ce350bfe607c2300c1 100644 (file)
@@ -3627,7 +3627,6 @@ static void pmu_count_insns(DisasContext *ctx)
 #else
 static void pmu_count_insns(DisasContext *ctx)
 {
-    return;
 }
 #endif /* #if defined(TARGET_PPC64) */
 
index 9db4048523e832b5bdfe2ee24da20d24c82fc0f6..198d051521db21b73e4a2dd052c2587191433ac8 100644 (file)
@@ -551,8 +551,6 @@ static void type2_reg_write(CPURISCVState *env, target_ulong index,
     default:
         g_assert_not_reached();
     }
-
-    return;
 }
 
 /* type 6 trigger */
@@ -667,8 +665,6 @@ static void type6_reg_write(CPURISCVState *env, target_ulong index,
     default:
         g_assert_not_reached();
     }
-
-    return;
 }
 
 /* icount trigger type */
@@ -849,8 +845,6 @@ static void itrigger_reg_write(CPURISCVState *env, target_ulong index,
     default:
         g_assert_not_reached();
     }
-
-    return;
 }
 
 static int itrigger_get_adjust_count(CPURISCVState *env)
index 93a05e43d793bfa2d2ffdc4f7b4b47b4c1ee8b40..8e0b01dc65f6bef74f65c773899ed4a48b67c305 100644 (file)
@@ -578,7 +578,6 @@ static void check_compat_model_failed(Error **errp,
     error_setg(errp, "%s. Maximum supported model in the current configuration: \'%s\'",
                msg, max_model->def->name);
     error_append_hint(errp, "Consider a different accelerator, try \"-accel help\"\n");
-    return;
 }
 
 static bool check_compatibility(const S390CPUModel *max_model,
index bcdd55881833bad3007b1cf85128ce800ddac4e1..57b972e14f1ff9559bb6190fd6f85b7354da4698 100644 (file)
@@ -1792,7 +1792,6 @@ static void _decode_opc(DisasContext * ctx)
         gen_helper_raise_fpu_disable(tcg_env);
     }
     ctx->base.is_jmp = DISAS_NORETURN;
-    return;
 }
 
 static void decode_opc(DisasContext * ctx)
index 88ac6c66ce327588c2ee68e346355c14d136df2c..e8aabfc13f54e2b3a3b6010b98e60b1b8837722f 100644 (file)
@@ -1881,7 +1881,6 @@ static void test_io_interface(gconstpointer opaque)
     sector = offset_sector(opts->offset, opts->address_type, bufsize);
     test_io_rw_interface(opts->address_type, opts->io_type, bufsize, sector);
     g_free(opts);
-    return;
 }
 
 static void create_ahci_io_test(enum IOMode type, enum AddrMode addr,
index d107a496da635d00fe00fc6d68324ec23f787bcb..b42473d1ceca78abc47611641c392882cdad0569 100644 (file)
@@ -572,7 +572,6 @@ static void op_add_dma_pattern(QTestState *s,
     pattern p = {a.index, a.stride, len - sizeof(a), data + sizeof(a)};
     p.index = a.index % p.len;
     g_array_append_val(dma_patterns, p);
-    return;
 }
 
 static void op_clear_dma_patterns(QTestState *s,
index d7566972c409781126cd89551c373c2642cbf6b9..c90f8f03f4fc228d55411921c79190cae058e661 100644 (file)
@@ -342,5 +342,4 @@ void migrate_allocator(QGuestAllocator *src,
     QTAILQ_INIT(src->free);
     node = mlist_new(src->start, src->end - src->start);
     QTAILQ_INSERT_HEAD(src->free, node, MLIST_ENTNAME);
-    return;
 }
index fad307d125aa3d20e1d5151f1fbff2680e47dddf..358580361d378c8720e5dbb6ddc9158476a2b736 100644 (file)
@@ -2022,7 +2022,6 @@ void qtest_client_inproc_recv(void *opaque, const char *str)
         qts->rx = g_string_new(NULL);
     }
     g_string_append(qts->rx, str);
-    return;
 }
 
 void qtest_qom_set_bool(QTestState *s, const char *path, const char *property,
index b9603d46fa93cd1e8f3cd088227b2f036701a731..c9de47bb2690c3e5d3d4298ab87260eab672acc3 100644 (file)
@@ -193,7 +193,6 @@ static void add_feature_test(const char *name, const char *cpu,
     args->bitnr = bitnr;
     args->expected_value = expected_value;
     qtest_add_data_func(name, args, test_feature_flag);
-    return;
 }
 
 static void test_plus_minus_subprocess(void)
index f3439cc4e52e09930ffcf1deaa4e7cd3f35942f6..37db24f72a1e3e05f71bda02bc1697deb47c7f58 100644 (file)
@@ -170,5 +170,4 @@ void socket_check_afunix_support(bool *has_afunix)
     if (*has_afunix) {
         close(fd);
     }
-    return;
 }
index 334c76c8e71989022b842b66c15c6dc66ae5e82b..ca1d60fc189574fa6d3a41aadf1b5616152f2875 100644 (file)
@@ -44,7 +44,6 @@ static void *driverfunct(void *obj, QGuestAllocator *machine, void *arg)
 
 static void testfunct(void *obj, void *arg, QGuestAllocator *alloc)
 {
-    return;
 }
 
 static void check_interface(const char *interface)
index 381148ea994f34c60201792c5c150a6f644804a4..203e264212d5cdce39e13a93bd16b798ff2eb4df 100644 (file)
@@ -412,7 +412,6 @@ err_read_event_bits:
 
 err_close:
     close(il->fd);
-    return;
 }
 
 static void input_linux_instance_finalize(Object *obj)
index 9241caaad96b5a7c5d0c7ad3c2e66fa658ef9999..9e097dc4b46db600672dcf7ddd089e34acf2381c 100644 (file)
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -146,8 +146,6 @@ static void vnc_init_basic_info(SocketAddress *addr,
     default:
         abort();
     }
-
-    return;
 }
 
 static void vnc_init_basic_info_from_server_addr(QIOChannelSocket *ioc,
index acad8c2e6cd8e83d86588a6006052c11754ab142..979db51a1f9fea23fe1d5c8b52a4113c8b110d60 100644 (file)
@@ -212,7 +212,6 @@ static void main_loop_init(EventLoopBase *base, Error **errp)
     main_loop_update_params(base, errp);
 
     mloop = m;
-    return;
 }
 
 static bool main_loop_can_be_deleted(EventLoopBase *base)
index 92c6b787593d60128bd42561d65ea15b4a37c56d..208c2f4b3298117f4fd7f98577c7db5ee0f98845 100644 (file)
@@ -367,7 +367,6 @@ void qht_map_lock_buckets__no_stale(struct qht *ht, struct qht_map **pmap)
     qht_map_lock_buckets(map);
     qht_unlock(ht);
     *pmap = map;
-    return;
 }
 
 /*