mbox series

[0/2] remove useless type cast

Message ID 20240722091728.4334-1-yaoxt.fnst@fujitsu.com (mailing list archive)
Headers show
Series remove useless type cast | expand

Message

Xingtao Yao (Fujitsu) July 22, 2024, 9:17 a.m. UTC
Currently the pattern in scripts/coccinelle/typecast.cocci is used to
remove the useless type cast.

Use the following command to find out the use cases and remove the
useless type case:
$ spatch --macro-file scripts/cocci-macro-file.h \
         --sp-file ./scripts/coccinelle/typecast.cocci \
         --keep-comments --in-place --use-gitgrep --dir .

Yao Xingtao (2):
  mips/loongson3_virt: remove useless type cast
  nvme/ctrl: remove useless type cast

 hw/mips/loongson3_virt.c | 4 ++--
 hw/nvme/ctrl.c           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)