From b32fefd72878ca398f9a83c9eea3533f74dfcd5a Mon Sep 17 00:00:00 2001
From: Xu Yandong <xuyandong2@huawei.com>
Date: Wed, 28 Aug 2019 10:45:02 +0800
Subject: [PATCH] hostdev: remove unnessary virObjectUnref after use
 VIR_AUTOUNREF

After introduce the VIR_AUTOUNREF macro, virObjectUnref is no
longer needed.

Signed-off-by: Xu Yandong <xuyandong2@huawei.com>
---
 src/util/virhostdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index a3647a6..271a654 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -1081,7 +1081,6 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
 
     virObjectUnlock(mgr->activePCIHostdevs);
     virObjectUnlock(mgr->inactivePCIHostdevs);
-    virObjectUnref(pcidevs);
 }
 
 int
-- 
2.19.1

