From: Chen Gang Date: Fri, 26 Sep 2014 15:34:29 +0000 (+0800) Subject: xen/xenbus: Correct the comments for xenbus_grant_ring() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c7440a2f225e3b37abbe27f069465cd31ba94b3c;p=linux-beck.git 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 Signed-off-by: David Vrabel --- 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, * @ring_mfn: mfn of ring to grant * Grant access to the given @ring_mfn to the peer of the given device. Return - * 0 on success, or -errno on error. On error, the device will switch to - * XenbusStateClosing, and the error will be saved in the store. + * a grant reference on success, or -errno on error. On error, the device will + * switch to XenbusStateClosing, and the error will be saved in the store. */ int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn) {