Commit 21c3184c authored by Eli Billauer's avatar Eli Billauer Committed by Greg Kroah-Hartman

staging: xillybus: Fix comments

Trivial comments removed, and one comment clarified
Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEli Billauer <eli.billauer@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c14cc622
...@@ -402,7 +402,7 @@ static int xilly_get_dma_buffers(struct xilly_endpoint *ep, ...@@ -402,7 +402,7 @@ static int xilly_get_dma_buffers(struct xilly_endpoint *ep,
s->left_of_salami -= bytebufsize; s->left_of_salami -= bytebufsize;
s->salami += bytebufsize; s->salami += bytebufsize;
} }
return 0; /* Success */ return 0;
} }
static int xilly_setupchannels(struct xilly_endpoint *ep, static int xilly_setupchannels(struct xilly_endpoint *ep,
...@@ -668,7 +668,7 @@ static int xilly_obtain_idt(struct xilly_endpoint *endpoint) ...@@ -668,7 +668,7 @@ static int xilly_obtain_idt(struct xilly_endpoint *endpoint)
return -ENODEV; return -ENODEV;
} }
return 0; /* Success */ return 0;
} }
static ssize_t xillybus_read(struct file *filp, char __user *userbuf, static ssize_t xillybus_read(struct file *filp, char __user *userbuf,
...@@ -977,10 +977,11 @@ static ssize_t xillybus_read(struct file *filp, char __user *userbuf, ...@@ -977,10 +977,11 @@ static ssize_t xillybus_read(struct file *filp, char __user *userbuf,
} }
/* /*
* Formally speaking, we should block for data at this point. * Reaching here means that we *do* have data in the buffer,
* But to keep the code cleaner, we'll just finish the loop, * but the "partial" flag disallows returning less than
* make the unlikely check for data, and then block at the * required. And we don't have as much. So loop again,
* usual place. * which is likely to end up blocking indefinitely until
* enough data has arrived.
*/ */
} }
...@@ -1947,7 +1948,7 @@ static int xilly_quiesce(struct xilly_endpoint *endpoint) ...@@ -1947,7 +1948,7 @@ static int xilly_quiesce(struct xilly_endpoint *endpoint)
"Failed to quiesce the device on exit.\n"); "Failed to quiesce the device on exit.\n");
return -ENODEV; return -ENODEV;
} }
return 0; /* Success */ return 0;
} }
int xillybus_endpoint_discovery(struct xilly_endpoint *endpoint) int xillybus_endpoint_discovery(struct xilly_endpoint *endpoint)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment