diff options
author | dinglimin | 2022-09-28 11:03:12 +0200 |
---|---|---|
committer | Laurent Vivier | 2022-10-22 23:19:11 +0200 |
commit | 6191347991225a291ce38f5faf4d6e8181b5561f (patch) | |
tree | b0e588513f293dc19c51e66d270372d918acf463 /scripts | |
parent | tests/qtest: vhost-user-test: Fix [-Werror=format-overflow=] build warning (diff) | |
download | qemu-6191347991225a291ce38f5faf4d6e8181b5561f.tar.gz qemu-6191347991225a291ce38f5faf4d6e8181b5561f.tar.xz qemu-6191347991225a291ce38f5faf4d6e8181b5561f.zip |
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')
-rwxr-xr-x | scripts/vmstate-static-checker.py | 1 |
1 files changed, 0 insertions, 1 deletions
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(): |