vmstate-static-checker:remove this redundant return
authordinglimin <dinglimin@cmss.chinamobile.com>
Wed, 28 Sep 2022 09:03:12 +0000 (17:03 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 22 Oct 2022 21:19:11 +0000 (23:19 +0200)
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>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20220928090312.2537-1-dinglimin@cmss.chinamobile.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
scripts/vmstate-static-checker.py

index b36938836026facea26c0e475579700ca1f35241..dfeee8231a8ab691ea9eb0f88b33e3e396debf12 100755 (executable)
@@ -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():