mbox series

[v2,0/3] Cleanups around returns

Message ID 20250407082643.2310002-1-armbru@redhat.com (mailing list archive)
Headers show
Series Cleanups around returns | expand

Message

Markus Armbruster April 7, 2025, 8:26 a.m. UTC
v2:
* Don't touch tests/tcg/mips/user/ [Peter]

Markus Armbruster (3):
  cleanup: Re-run return_directly.cocci
  cleanup: Drop pointless return at end of function
  cleanup: Drop pointless label at end of function

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