diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/vhost/vhost.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 0536f8526359..1ac9de250319 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
| @@ -203,7 +203,6 @@ EXPORT_SYMBOL_GPL(vhost_poll_init); | |||
| 203 | int vhost_poll_start(struct vhost_poll *poll, struct file *file) | 203 | int vhost_poll_start(struct vhost_poll *poll, struct file *file) |
| 204 | { | 204 | { |
| 205 | __poll_t mask; | 205 | __poll_t mask; |
| 206 | int ret = 0; | ||
| 207 | 206 | ||
| 208 | if (poll->wqh) | 207 | if (poll->wqh) |
| 209 | return 0; | 208 | return 0; |
| @@ -213,10 +212,10 @@ int vhost_poll_start(struct vhost_poll *poll, struct file *file) | |||
| 213 | vhost_poll_wakeup(&poll->wait, 0, 0, poll_to_key(mask)); | 212 | vhost_poll_wakeup(&poll->wait, 0, 0, poll_to_key(mask)); |
| 214 | if (mask & EPOLLERR) { | 213 | if (mask & EPOLLERR) { |
| 215 | vhost_poll_stop(poll); | 214 | vhost_poll_stop(poll); |
| 216 | ret = -EINVAL; | 215 | return -EINVAL; |
| 217 | } | 216 | } |
| 218 | 217 | ||
| 219 | return ret; | 218 | return 0; |
| 220 | } | 219 | } |
| 221 | EXPORT_SYMBOL_GPL(vhost_poll_start); | 220 | EXPORT_SYMBOL_GPL(vhost_poll_start); |
| 222 | 221 | ||
