diff options
| -rw-r--r-- | drivers/vhost/vhost.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index ef82a0d18489..99ac2cb08b43 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
| @@ -636,8 +636,8 @@ static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m) | |||
| 636 | 636 | ||
| 637 | static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp) | 637 | static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp) |
| 638 | { | 638 | { |
| 639 | struct file *eventfp, *filep = NULL, | 639 | struct file *eventfp, *filep = NULL; |
| 640 | *pollstart = NULL, *pollstop = NULL; | 640 | bool pollstart = false, pollstop = false; |
| 641 | struct eventfd_ctx *ctx = NULL; | 641 | struct eventfd_ctx *ctx = NULL; |
| 642 | u32 __user *idxp = argp; | 642 | u32 __user *idxp = argp; |
| 643 | struct vhost_virtqueue *vq; | 643 | struct vhost_virtqueue *vq; |
| @@ -763,8 +763,8 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp) | |||
| 763 | break; | 763 | break; |
| 764 | } | 764 | } |
| 765 | if (eventfp != vq->kick) { | 765 | if (eventfp != vq->kick) { |
| 766 | pollstop = filep = vq->kick; | 766 | pollstop = (filep = vq->kick) != NULL; |
| 767 | pollstart = vq->kick = eventfp; | 767 | pollstart = (vq->kick = eventfp) != NULL; |
| 768 | } else | 768 | } else |
| 769 | filep = eventfp; | 769 | filep = eventfp; |
| 770 | break; | 770 | break; |
