aboutsummaryrefslogtreecommitdiff
path: root/scripts/vmstate-static-checker.py
diff options
context:
space:
mode:
authordinglimin <dinglimin@cmss.chinamobile.com>2022-09-28 17:03:12 +0800
committerLaurent Vivier <laurent@vivier.eu>2022-10-22 23:19:11 +0200
commit6191347991225a291ce38f5faf4d6e8181b5561f (patch)
treeb0e588513f293dc19c51e66d270372d918acf463 /scripts/vmstate-static-checker.py
parent1c324bf908e3de1cf352e36484c73dc07767d938 (diff)
downloadqemu-6191347991225a291ce38f5faf4d6e8181b5561f.zip
qemu-6191347991225a291ce38f5faf4d6e8181b5561f.tar.gz
qemu-6191347991225a291ce38f5faf4d6e8181b5561f.tar.bz2
vmstate-static-checker:remove this redundant return
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>
Diffstat (limited to 'scripts/vmstate-static-checker.py')
-rwxr-xr-xscripts/vmstate-static-checker.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/vmstate-static-checker.py b/scripts/vmstate-static-checker.py
index b369388..dfeee82 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():