tests/migration: remove the unused local variable
authordinglimin <dinglimin@cmss.chinamobile.com>
Wed, 28 Sep 2022 08:05:55 +0000 (16:05 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 11 Oct 2022 10:37:12 +0000 (12:37 +0200)
Remove the unused local variable "records".

Signed-off-by: dinglimin <dinglimin@cmss.chinamobile.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Message-Id: <20220928080555.2263-1-dinglimin@cmss.chinamobile.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/migration/guestperf/engine.py

index 87a6ab200908f6d0d4e581bd75b134e3f466e017..59fca2c70b1e7c81b84c79b38be11bec8769f916 100644 (file)
@@ -65,7 +65,6 @@ class Engine(object):
         return records
 
     def _cpu_timing(self, pid):
-        records = []
         now = time.time()
 
         jiffies_per_sec = os.sysconf(os.sysconf_names['SC_CLK_TCK'])