cleanup: Tweak and re-run return_directly.cocci
Tweak the semantic patch to drop redundant parenthesis around the return expression. Coccinelle drops a comment in hw/rdma/vmw/pvrdma_cmd.c; restored manually. Coccinelle messes up vmdk_co_create(), not sure why. Change dropped, will be done manually in the next commit. Line breaks in target/avr/cpu.h and hw/rdma/vmw/pvrdma_cmd.c tidied up manually. Whitespace in tools/virtiofsd/fuse_lowlevel.c tidied up manually. checkpatch.pl complains "return of an errno should typically be -ve" two times for hw/9pfs/9p-synth.c. Preexisting, the patch merely makes it visible to checkpatch.pl. Signed-off-by:Markus Armbruster <armbru@redhat.com> Message-Id: <20221122134917.1217307-2-armbru@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by:
Dr. David Alan Gilbert <dgilbert@redhat.com>
Showing
- hw/9pfs/9p-synth.c 4 additions, 10 deletionshw/9pfs/9p-synth.c
- hw/char/sifive_uart.c 1 addition, 3 deletionshw/char/sifive_uart.c
- hw/ppc/ppc4xx_sdram.c 1 addition, 4 deletionshw/ppc/ppc4xx_sdram.c
- hw/rdma/vmw/pvrdma_cmd.c 20 additions, 37 deletionshw/rdma/vmw/pvrdma_cmd.c
- hw/virtio/vhost-user.c 1 addition, 5 deletionshw/virtio/vhost-user.c
- include/hw/pci/pci.h 2 additions, 5 deletionsinclude/hw/pci/pci.h
- migration/dirtyrate.c 2 additions, 8 deletionsmigration/dirtyrate.c
- migration/tls.c 1 addition, 5 deletionsmigration/tls.c
- replay/replay-time.c 1 addition, 4 deletionsreplay/replay-time.c
- scripts/coccinelle/return_directly.cocci 2 additions, 3 deletionsscripts/coccinelle/return_directly.cocci
- semihosting/console.c 1 addition, 3 deletionssemihosting/console.c
- softmmu/memory.c 2 additions, 9 deletionssoftmmu/memory.c
- softmmu/physmem.c 2 additions, 7 deletionssoftmmu/physmem.c
- target/avr/cpu.h 1 addition, 3 deletionstarget/avr/cpu.h
- target/loongarch/cpu.c 1 addition, 3 deletionstarget/loongarch/cpu.c
- target/mips/tcg/dsp_helper.c 3 additions, 12 deletionstarget/mips/tcg/dsp_helper.c
- target/riscv/debug.c 2 additions, 4 deletionstarget/riscv/debug.c
- target/riscv/vector_helper.c 7 additions, 21 deletionstarget/riscv/vector_helper.c
- tests/bench/benchmark-crypto-akcipher.c 2 additions, 4 deletionstests/bench/benchmark-crypto-akcipher.c
- tests/qtest/erst-test.c 1 addition, 4 deletionstests/qtest/erst-test.c
Loading
Please register or sign in to comment