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
nexedi
linux
Commits
f09a3ee3
Commit
f09a3ee3
authored
Jan 15, 2020
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/flcn/msgq: remove error handling for msg_queue_open(), it can't fail
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
86ce2a71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
+2
-7
No files found.
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
View file @
f09a3ee3
...
...
@@ -22,13 +22,12 @@
*/
#include "qmgr.h"
static
int
static
void
msg_queue_open
(
struct
nvkm_msgqueue
*
priv
,
struct
nvkm_msgqueue_queue
*
queue
)
{
struct
nvkm_falcon
*
falcon
=
priv
->
falcon
;
mutex_lock
(
&
queue
->
mutex
);
queue
->
position
=
nvkm_falcon_rd32
(
falcon
,
queue
->
tail_reg
);
return
0
;
}
static
void
...
...
@@ -91,11 +90,7 @@ msg_queue_read(struct nvkm_msgqueue *priv, struct nvkm_msgqueue_queue *queue,
const
struct
nvkm_subdev
*
subdev
=
priv
->
falcon
->
owner
;
int
ret
;
ret
=
msg_queue_open
(
priv
,
queue
);
if
(
ret
)
{
nvkm_error
(
subdev
,
"fail to open queue %d
\n
"
,
queue
->
index
);
return
ret
;
}
msg_queue_open
(
priv
,
queue
);
if
(
msg_queue_empty
(
priv
,
queue
))
{
ret
=
0
;
...
...
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