From nobody Mon May 20 12:46:28 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1664377653432565.6073527094676; Wed, 28 Sep 2022 08:07:33 -0700 (PDT) Received: from localhost ([::1]:60388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odYep-0004QB-Ry for importer@patchew.org; Wed, 28 Sep 2022 11:07:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odSyk-0000xg-U0 for qemu-devel@nongnu.org; Wed, 28 Sep 2022 05:03:43 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:12443) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odSyg-0006mQ-3t for qemu-devel@nongnu.org; Wed, 28 Sep 2022 05:03:41 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.99]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee963340de01e9-18a6d; Wed, 28 Sep 2022 17:03:28 +0800 (CST) Received: from localhost.localdomain (unknown[223.108.79.103]) by rmsmtp-syy-appsvrnew10-12035 (RichMail) with SMTP id 2f0363340ddd970-c4418; Wed, 28 Sep 2022 17:03:28 +0800 (CST) X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee963340de01e9-18a6d X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2f0363340ddd970-c4418 From: dinglimin To: thuth@redhat.com Cc: alex.bennee@linaro.org, jsnow@redhat.com, qemu-devel@nongnu.org, dinglimin Subject: [PATCH] vmstate-static-checker:remove this redundant return Date: Wed, 28 Sep 2022 17:03:12 +0800 Message-Id: <20220928090312.2537-1-dinglimin@cmss.chinamobile.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=221.176.66.81; envelope-from=dinglimin@cmss.chinamobile.com; helo=cmccmta3.chinamobile.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 28 Sep 2022 09:54:58 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZM-MESSAGEID: 1664377656589100001 Content-Type: text/plain; charset="utf-8" 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 --- scripts/vmstate-static-checker.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/vmstate-static-checker.py b/scripts/vmstate-static-che= cker.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"] !=3D d["Name"]: print("Warning: checking incompatible machine types:", end=3D' ') print("\"" + s["Name"] + "\", \"" + d["Name"] + "\"") - return =20 =20 def main(): --=20 2.30.0.windows.2