Skip to content

Commit

Permalink
vmstate-static-checker:remove this redundant return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dinglimin authored and vivier committed Oct 22, 2022
1 parent 1c324bf commit 6191347
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/vmstate-static-checker.py
Expand Up @@ -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():
Expand Down

0 comments on commit 6191347

Please sign in to comment.