qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vmstate-static-checker:remove this redundant return
@ 2022-09-28  9:03 dinglimin
  2022-10-13 22:36 ` John Snow
  2022-10-22 21:19 ` Laurent Vivier
  0 siblings, 2 replies; 3+ messages in thread
From: dinglimin @ 2022-09-28  9:03 UTC (permalink / raw)
  To: thuth; +Cc: alex.bennee, jsnow, qemu-devel, dinglimin

Jump statements, such as return and continue let you
change the default flow of program execution,
but jump statements that direct the control flow to
the original direction are just a waste of keystrokes.

Signed-off-by: dinglimin <dinglimin@cmss.chinamobile.com>
---
 scripts/vmstate-static-checker.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/vmstate-static-checker.py b/scripts/vmstate-static-checker.py
index b369388360..dfeee8231a 100755
--- a/scripts/vmstate-static-checker.py
+++ b/scripts/vmstate-static-checker.py
@@ -367,7 +367,6 @@ def check_machine_type(s, d):
     if s["Name"] != d["Name"]:
         print("Warning: checking incompatible machine types:", end=' ')
         print("\"" + s["Name"] + "\", \"" + d["Name"] + "\"")
-    return
 
 
 def main():
-- 
2.30.0.windows.2





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

end of thread, other threads:[~2022-10-24  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28  9:03 [PATCH] vmstate-static-checker:remove this redundant return dinglimin
2022-10-13 22:36 ` John Snow
2022-10-22 21:19 ` Laurent Vivier

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