mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
vhost_set_vring(): turn pollstart/pollstop into bool
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e10ce27f0d
commit
cecb46f194
1 changed files with 4 additions and 4 deletions
|
@ -636,8 +636,8 @@ static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m)
|
||||||
|
|
||||||
static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
|
static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
|
||||||
{
|
{
|
||||||
struct file *eventfp, *filep = NULL,
|
struct file *eventfp, *filep = NULL;
|
||||||
*pollstart = NULL, *pollstop = NULL;
|
bool pollstart = false, pollstop = false;
|
||||||
struct eventfd_ctx *ctx = NULL;
|
struct eventfd_ctx *ctx = NULL;
|
||||||
u32 __user *idxp = argp;
|
u32 __user *idxp = argp;
|
||||||
struct vhost_virtqueue *vq;
|
struct vhost_virtqueue *vq;
|
||||||
|
@ -763,8 +763,8 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (eventfp != vq->kick) {
|
if (eventfp != vq->kick) {
|
||||||
pollstop = filep = vq->kick;
|
pollstop = (filep = vq->kick) != NULL;
|
||||||
pollstart = vq->kick = eventfp;
|
pollstart = (vq->kick = eventfp) != NULL;
|
||||||
} else
|
} else
|
||||||
filep = eventfp;
|
filep = eventfp;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue