Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
cecb46f1
Commit
cecb46f1
authored
Aug 27, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vhost_set_vring(): turn pollstart/pollstop into bool
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e10ce27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/vhost/vhost.c
drivers/vhost/vhost.c
+4
-4
No files found.
drivers/vhost/vhost.c
View file @
cecb46f1
...
...
@@ -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
)
{
struct
file
*
eventfp
,
*
filep
=
NULL
,
*
pollstart
=
NULL
,
*
pollstop
=
NULL
;
struct
file
*
eventfp
,
*
filep
=
NULL
;
bool
pollstart
=
false
,
pollstop
=
false
;
struct
eventfd_ctx
*
ctx
=
NULL
;
u32
__user
*
idxp
=
argp
;
struct
vhost_virtqueue
*
vq
;
...
...
@@ -763,8 +763,8 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
break
;
}
if
(
eventfp
!=
vq
->
kick
)
{
pollstop
=
filep
=
vq
->
kick
;
pollstart
=
vq
->
kick
=
eventfp
;
pollstop
=
(
filep
=
vq
->
kick
)
!=
NULL
;
pollstart
=
(
vq
->
kick
=
eventfp
)
!=
NULL
;
}
else
filep
=
eventfp
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment