From patchwork Wed Sep 28 08:05:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: dinglimin X-Patchwork-Id: 1683941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Md0fp0V2lz1yqJ for ; Thu, 29 Sep 2022 01:25:05 +1000 (AEST) Received: from localhost ([::1]:58790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odYvk-0001Ui-W8 for incoming@patchwork.ozlabs.org; Wed, 28 Sep 2022 11:25:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odS5U-0002p3-Fr for qemu-devel@nongnu.org; Wed, 28 Sep 2022 04:06:37 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:4368) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odS5P-000766-Ic for qemu-devel@nongnu.org; Wed, 28 Sep 2022 04:06:35 -0400 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[172.16.121.3]) by rmmx-syy-dmz-app10-12010 (RichMail) with SMTP id 2eea6334007c02b-16d82; Wed, 28 Sep 2022 16:06:20 +0800 (CST) X-RM-TRANSID: 2eea6334007c02b-16d82 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.103]) by rmsmtp-syy-appsvr02-12002 (RichMail) with SMTP id 2ee2633400790a6-c2973; Wed, 28 Sep 2022 16:06:20 +0800 (CST) X-RM-TRANSID: 2ee2633400790a6-c2973 From: dinglimin To: qemu-devel@nongnu.org Cc: thuth@redhat.com, "dinglimin@cmss.chinamobile.com" Subject: [PATCH] tests/migration: remove the unused local variable Date: Wed, 28 Sep 2022 16:05:55 +0800 Message-Id: <20220928080555.2263-1-dinglimin@cmss.chinamobile.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "dinglimin@cmss.chinamobile.com" Remove the unused local variable "records". Signed-off-by: dinglimin Reviewed-by: Ján Tomko --- tests/migration/guestperf/engine.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/migration/guestperf/engine.py b/tests/migration/guestperf/engine.py index 87a6ab2009..59fca2c70b 100644 --- a/tests/migration/guestperf/engine.py +++ b/tests/migration/guestperf/engine.py @@ -65,7 +65,6 @@ def _vcpu_timing(self, pid, tid_list): return records def _cpu_timing(self, pid): - records = [] now = time.time() jiffies_per_sec = os.sysconf(os.sysconf_names['SC_CLK_TCK'])