Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
4fa13395
Commit
4fa13395
authored
12 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nouveau/core: fix return value of nouveau_object_del()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
804ca90f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/drm/nouveau/core/core/object.c
+1
-2
1 addition, 2 deletions
drivers/gpu/drm/nouveau/core/core/object.c
with
1 addition
and
2 deletions
drivers/gpu/drm/nouveau/core/core/object.c
+
1
−
2
View file @
4fa13395
...
...
@@ -278,7 +278,6 @@ nouveau_object_del(struct nouveau_object *client, u32 _parent, u32 _handle)
struct
nouveau_object
*
parent
=
NULL
;
struct
nouveau_object
*
namedb
=
NULL
;
struct
nouveau_handle
*
handle
=
NULL
;
int
ret
=
-
EINVAL
;
parent
=
nouveau_handle_ref
(
client
,
_parent
);
if
(
!
parent
)
...
...
@@ -295,7 +294,7 @@ nouveau_object_del(struct nouveau_object *client, u32 _parent, u32 _handle)
}
nouveau_object_ref
(
NULL
,
&
parent
);
return
ret
;
return
handle
?
0
:
-
EINVAL
;
}
int
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment