qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] remove useless type cast
@ 2024-07-22  9:17 Yao Xingtao via
  2024-07-22  9:17 ` [PATCH 1/2] mips/loongson3_virt: " Yao Xingtao via
  2024-07-22  9:17 ` [PATCH 2/2] nvme/ctrl: " Yao Xingtao via
  0 siblings, 2 replies; 8+ messages in thread
From: Yao Xingtao via @ 2024-07-22  9:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: Yao Xingtao

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(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-22 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22  9:17 [PATCH 0/2] remove useless type cast Yao Xingtao via
2024-07-22  9:17 ` [PATCH 1/2] mips/loongson3_virt: " Yao Xingtao via
2024-07-22 11:47   ` Peter Maydell
2024-07-22 12:10   ` Philippe Mathieu-Daudé
2024-07-22 21:16   ` Philippe Mathieu-Daudé
2024-07-22  9:17 ` [PATCH 2/2] nvme/ctrl: " Yao Xingtao via
2024-07-22 11:48   ` Peter Maydell
2024-07-22 11:52   ` Klaus Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).