From: dinglimin Date: Wed, 28 Sep 2022 09:03:12 +0000 (+0800) Subject: vmstate-static-checker:remove this redundant return X-Git-Tag: v7.2.0-rc0~40^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6191347991225a291ce38f5faf4d6e8181b5561f;p=thirdparty%2Fqemu.git 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 Reviewed-by: John Snow Message-Id: <20220928090312.2537-1-dinglimin@cmss.chinamobile.com> Signed-off-by: Laurent Vivier --- diff --git a/scripts/vmstate-static-checker.py b/scripts/vmstate-static-checker.py index b3693883602..dfeee8231a8 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():