Commit 8737215d authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] warning fix in usb/gadget/inode.c

wrong type of return value.
parent 0adbc639
...@@ -577,10 +577,10 @@ static int ep_aio_cancel(struct kiocb *iocb, struct io_event *e) ...@@ -577,10 +577,10 @@ static int ep_aio_cancel(struct kiocb *iocb, struct io_event *e)
return value; return value;
} }
static long ep_aio_read_retry(struct kiocb *iocb) static ssize_t ep_aio_read_retry(struct kiocb *iocb)
{ {
struct kiocb_priv *priv = (void *) &iocb->private; struct kiocb_priv *priv = (void *) &iocb->private;
int status = priv->actual; ssize_t status = priv->actual;
/* we "retry" to get the right mm context for this: */ /* we "retry" to get the right mm context for this: */
status = copy_to_user(priv->ubuf, priv->buf, priv->actual); status = copy_to_user(priv->ubuf, priv->buf, priv->actual);
......
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