From nobody Tue Apr 30 07:38:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.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 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1591846242; cv=none; d=zohomail.com; s=zohoarc; b=oFTodxkWDwKRqdyXNwCDMzdztIU+9epyLvXmg5+NwlCDFpMam6UyiliPdnziTtC6KeH7n3eBkvqmyoJhBM7WUtv5kFkvMbCSkd4tRZf+vmksbSzd/BqGCWaU2T+UO6tOx5YFmOAH7bvplp8wOTzflx/B0t+BptBUowLfVoUMF78= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591846242; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=AEaAkbxat+o5g/m9oADnVHMqkY+k5KC8H9bzOE7IH04=; b=lMMJB37vR6q8Hi2eVBN4fJU7sATyNzcQfV/FEQLEgkKdzTI/cPP2wSrmZ5fHtXENIKnACUQqSPZf1UUdxPMgxGQ1s/L0WeBNl5760CMvRwrrp+zCV45vcOVWe0ujPCKzKQqigTn9HIV4FGb6qitfeBOa6jzTDTKCoykDDiRk5+o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1591846241888505.6840188934483; Wed, 10 Jun 2020 20:30:41 -0700 (PDT) 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-125-hV_DeCyLP46heD7odbzW_w-1; Wed, 10 Jun 2020 23:30:38 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5F85018B6451; Thu, 11 Jun 2020 03:30:23 +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 1089060BF3; Thu, 11 Jun 2020 03:30:21 +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 1CF1E1809547; Thu, 11 Jun 2020 03:30:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05B3UCIq018698 for ; Wed, 10 Jun 2020 23:30:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id CCBAC2026FFE; Thu, 11 Jun 2020 03:30:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C84642026D5D for ; Thu, 11 Jun 2020 03:30:10 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 236AD800830 for ; Thu, 11 Jun 2020 03:30:10 +0000 (UTC) Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.70.204]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-0dCU7pxdOEqcdJ49yf9dGQ-1; Wed, 10 Jun 2020 23:30:06 -0400 Received: from localhost (unknown [192.168.167.32]) by regular1.263xmail.com (Postfix) with ESMTP id DC2B92C7 for ; Thu, 11 Jun 2020 11:26:34 +0800 (CST) Received: from localhost.localdomain (unknown [14.18.236.69]) by smtp.263.net (postfix) whith ESMTP id P3332T139697204016896S1591845990838272_; Thu, 11 Jun 2020 11:26:34 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591846240; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=AEaAkbxat+o5g/m9oADnVHMqkY+k5KC8H9bzOE7IH04=; b=Ifq67dZM8xuxIEEt8qZXUHknancknCWYrVwyCq6tf4rCTd1kPBdt47U6D6D18M5On/ZeTX 6plyYZ2XZHA1qrY9sFsA2hiSNTCR7rpD0htb4NUHr/HmdMY5hPBYsk6Hcvhat4mTx5Xygg jVI+zRGguZzkxX/0JHCaqD5USwJWMZQ= X-MC-Unique: hV_DeCyLP46heD7odbzW_w-1 X-MC-Unique: 0dCU7pxdOEqcdJ49yf9dGQ-1 X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: yili@winhong.com X-SENDER: yili@winhong.com X-LOGIN-NAME: yili@winhong.com X-FST-TO: libvir-list@redhat.com X-SENDER-IP: 14.18.236.69 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Yi Li To: libvir-list@redhat.com Subject: [PATCH] conf: remove unused variable Date: Thu, 11 Jun 2020 11:26:29 +0800 Message-Id: <20200611032629.1396921-1-yili@winhong.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 05B3UCIq018698 X-loop: libvir-list@redhat.com Cc: yilikernel@gmail.com, yili@winhong.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.12 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" Signed-off-by: Yi Li Reviewed-by: Erik Skultety --- src/conf/snapshot_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index 857d04c476..f73eeb06c7 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -231,7 +231,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt, xmlNodePtr inactiveDomNode =3D NULL; size_t i; int n; - char *creation =3D NULL, *state =3D NULL; + char *state =3D NULL; int active; char *tmp; char *memorySnapshot =3D NULL; @@ -404,7 +404,6 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt, ret =3D g_steal_pointer(&def); =20 cleanup: - VIR_FREE(creation); VIR_FREE(state); VIR_FREE(nodes); VIR_FREE(memorySnapshot); --=20 2.25.3