projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
804ca90
)
drm/nouveau/core: fix return value of nouveau_object_del()
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Mar 2013 23:57:57 +0000
(09:57 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 19 Mar 2013 05:26:30 +0000
(15:26 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/object.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/core/object.c
b/drivers/gpu/drm/nouveau/core/core/object.c
index 0daab62ea14c68a13f9fa1e58b681f4d39d760e0..3b2e7b6304d39862ac60159416018d4417f33ec6 100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/core/object.c
+++ b/
drivers/gpu/drm/nouveau/core/core/object.c
@@
-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