From nobody Sun Feb 8 12:14:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1580207530672942.1657772178404; Tue, 28 Jan 2020 02:32:10 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-414-cn2kuZyYMxKO7gfAVusQDQ-1; Tue, 28 Jan 2020 05:32:03 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 81FB7100550E; Tue, 28 Jan 2020 10:31:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5509A5DA85; Tue, 28 Jan 2020 10:31:58 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 10B2418089D5; Tue, 28 Jan 2020 10:31:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00SAVbi6014015 for ; Tue, 28 Jan 2020 05:31:37 -0500 Received: by smtp.corp.redhat.com (Postfix) id E54A45C3FA; Tue, 28 Jan 2020 10:31:37 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.43.2.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id 709455C21B for ; Tue, 28 Jan 2020 10:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580207529; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lZImdkgKQFUebh2p+gymeXYs/wbpuWa9bZ8sESYYFDA=; b=CtfPBREhJe6b/P3Ovj7PPM4RQ+ADrFWvh35ZHwTyCfcGDOiwlaZnsimJxRP2SaSEx28UJh 3YzLSdbCNEEEgpBM5ESUzFCJtOn3HC7TRZdakt9eWNUUgu2td9I1+N1I0itu0r8DDBQCQN RpP1KYSenljlwX0pE5k7+n162Hgusbg= From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 04/10] qemu: use def instead of vm->def in qemuExtDevicesStart Date: Tue, 28 Jan 2020 11:31:20 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: cn2kuZyYMxKO7gfAVusQDQ-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We have a helper variable to make the code more concise, use it consistently. Signed-off-by: J=C3=A1n Tomko Reviewed-by: Peter Krempa --- src/qemu/qemu_extdevice.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c index 463f76c21a..1869a42f11 100644 --- a/src/qemu/qemu_extdevice.c +++ b/src/qemu/qemu_extdevice.c @@ -159,11 +159,11 @@ qemuExtDevicesStart(virQEMUDriverPtr driver, int ret =3D 0; size_t i; =20 - if (qemuExtDevicesInitPaths(driver, vm->def) < 0) + if (qemuExtDevicesInitPaths(driver, def) < 0) return -1; =20 - for (i =3D 0; i < vm->def->nvideos; i++) { - virDomainVideoDefPtr video =3D vm->def->videos[i]; + for (i =3D 0; i < def->nvideos; i++) { + virDomainVideoDefPtr video =3D def->videos[i]; =20 if (video->backend =3D=3D VIR_DOMAIN_VIDEO_BACKEND_TYPE_VHOSTUSER)= { ret =3D qemuExtVhostUserGPUStart(driver, vm, video); @@ -172,7 +172,7 @@ qemuExtDevicesStart(virQEMUDriverPtr driver, } } =20 - if (vm->def->tpm) + if (def->tpm) ret =3D qemuExtTPMStart(driver, vm, incomingMigration); =20 for (i =3D 0; i < def->nnets; i++) { --=20 2.21.0