From: Tiejun Chen Subject: [PATCH] xen/pci: correct comment of pci_device_detect() Date: Wed, 20 May 2015 14:53:17 +0800 Message-ID: <1432104797-19006-1-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: jbeulich@suse.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Actually we always return 1 if pci device exists. Signed-off-by: Tiejun Chen --- xen/drivers/passthrough/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 862e20f..6cb6e00 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -905,7 +905,7 @@ out: } /* - * detect pci device, return 0 if it exists, or return 0 + * detect pci device, return 1 if it exists, or return 0 */ int __init pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func) { -- 1.9.1