From: Simon Horman Subject: [patch] xend: remove supurious pci_len from getDeviceSxprs Date: Wed, 20 May 2009 10:17:10 +1000 Message-ID: <20090520001710.GA16646@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Masaki Kanno , Zhai Edwin , Dexuan Cui List-Id: xen-devel@lists.xenproject.org Cc: Zhai Edwin Cc: Masaki Kanno Cc: Dexuan Cui Signed-off-by: Simon Horman diff -r 40d4267296ad tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Fri May 15 08:12:39 2009 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed May 20 10:05:59 2009 +1000 @@ -1197,7 +1197,6 @@ return [] dev_uuid = sxp.child_value(dev_info, 'uuid') pci_devs = self.info['devices'][dev_uuid][1]['devs'] - pci_len = len(pci_devs) return pci_devs if self._stateGet() in (DOM_STATE_RUNNING, DOM_STATE_PAUSED, DOM_STATE_CRASHED): return self.getDeviceController(deviceClass).sxprs()