From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1692287163; cv=none; d=zohomail.com; s=zohoarc; b=fkdQjBW+7/TcOEBWaat+dBprHJACE0alnSpB+/JVXh/BUkyYmh+SWnQHgVEdIAj2ke6KxcRiJZp13T3UkkFhIr1OkrlldOHrvodDfsanjUOj88LblLUvTR7V137RFfBRH7vkkpOmbMK3PQn1ufixk/hvHkRarc9NqtQXFQiN/2k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692287163; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=7tMVWibP7Lu3mALC22mxgls6NE1mNq7rG7zW5oPAWqc=; b=MDAuhPQqnLjnobnZM9bOjU+eTfGDp1a5aF9HyepvexBg69fdRPGQz6a+4nlgTYjyKUbklHBXIXly8Okjce3WRafzXGj0fNXUHijrNLl8VmJ5mwQekh1YgvnCpTxjoiXIbgmjFTQh3bj7TDUvXJJjTNNbVawGL9AYuZv0dnXamvg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 169228716310012.949164171807297; Thu, 17 Aug 2023 08:46:03 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-112-YbzFrJgNPNukBv27HXxYxA-1; Thu, 17 Aug 2023 11:45:57 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 69F4B185A7B1; Thu, 17 Aug 2023 15:45:55 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7209FC15BAD; Thu, 17 Aug 2023 15:45:53 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BAAE21946589; Thu, 17 Aug 2023 15:45:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 8B7701946588 for ; Thu, 17 Aug 2023 15:45:36 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7AB94492C13; Thu, 17 Aug 2023 15:45:36 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 22145492C14 for ; Thu, 17 Aug 2023 15:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692287162; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=7tMVWibP7Lu3mALC22mxgls6NE1mNq7rG7zW5oPAWqc=; b=RwFwwpnqGefZpZO7k3wAGigpRSviHoultH98V5uKlwObIaYvXpgV+UmUx3lk2+IDr/KO4Q a7h4abl3rJ/CFT8xJTb4xSKMP3bBu8Anm1lNdwY12yyuEp11ugqyD4BeMlFDp4Cc7qC6JB WJV6Yu7hBt4JrIPcSHQ37ZnmkVW0Wzg= X-MC-Unique: YbzFrJgNPNukBv27HXxYxA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] qemu_domain: Drop unused variables from qemuDomainChrDefDropDefaultPath() Date: Thu, 17 Aug 2023 17:45:35 +0200 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1692287164162100001 Content-Type: text/plain; charset="utf-8"; x-default="true" In mu previous commits I've moved internals of qemuDomainChrDefDropDefaultPath() into a separate function (qemuDomainChrMatchDefaultPath()) but forgot to remove @buf and @regexp variables which are now unused. Signed-off-by: Michal Privoznik --- Pushed under trivial rule. src/qemu/qemu_domain.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index d46516856e..f64836fbb1 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -5452,8 +5452,6 @@ qemuDomainChrDefDropDefaultPath(virDomainChrDef *chr, virQEMUDriver *driver) { g_autoptr(virQEMUDriverConfig) cfg =3D NULL; - g_auto(virBuffer) buf =3D VIR_BUFFER_INITIALIZER; - g_autofree char *regexp =3D NULL; =20 if (chr->deviceType !=3D VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL || chr->targetType !=3D VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO || --=20 2.41.0