From: Tiejun Chen <tiejun.chen@intel.com>
To: jbeulich@suse.com
Cc: xen-devel@lists.xen.org
Subject: [PATCH] xen/pci: correct comment of pci_device_detect()
Date: Wed, 20 May 2015 14:53:17 +0800 [thread overview]
Message-ID: <1432104797-19006-1-git-send-email-tiejun.chen@intel.com> (raw)
Actually we always return 1 if pci device exists.
Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
---
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
next reply other threads:[~2015-05-20 6:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-20 6:53 Tiejun Chen [this message]
2015-05-20 10:06 ` [PATCH] xen/pci: correct comment of pci_device_detect() Jan Beulich
2015-05-20 10:49 ` Chen, Tiejun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432104797-19006-1-git-send-email-tiejun.chen@intel.com \
--to=tiejun.chen@intel.com \
--cc=jbeulich@suse.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.