diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-09-26 11:34:29 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-10-06 05:27:56 -0400 |
commit | c7440a2f225e3b37abbe27f069465cd31ba94b3c (patch) | |
tree | 41d47d9551477b23d6ca0f6ad7c94dcf5f8b9a18 /drivers/xen | |
parent | a2ef5dc2c7cbedbeb4c847039845afaea5e63745 (diff) |
xen/xenbus: Correct the comments for xenbus_grant_ring()
A grant reference (which is a positive number) can indicate success, so
the original comments need be improved.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xenbus/xenbus_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index 439c9dca9eee..aa9b2fcdaeb2 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c | |||
@@ -361,8 +361,8 @@ static void xenbus_switch_fatal(struct xenbus_device *dev, int depth, int err, | |||
361 | * @ring_mfn: mfn of ring to grant | 361 | * @ring_mfn: mfn of ring to grant |
362 | 362 | ||
363 | * Grant access to the given @ring_mfn to the peer of the given device. Return | 363 | * Grant access to the given @ring_mfn to the peer of the given device. Return |
364 | * 0 on success, or -errno on error. On error, the device will switch to | 364 | * a grant reference on success, or -errno on error. On error, the device will |
365 | * XenbusStateClosing, and the error will be saved in the store. | 365 | * switch to XenbusStateClosing, and the error will be saved in the store. |
366 | */ | 366 | */ |
367 | int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn) | 367 | int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn) |
368 | { | 368 | { |