projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36da590
)
drm/gem: remove bogus NULL check from drm_gem_object_handle_unreference_unlocked
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:35 +0000
(
00:02
+0200)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 19 Aug 2013 00:47:13 +0000
(10:47 +1000)
Calling this function with a NULL object is simply a bug, so papering
over a NULL object not a good idea.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_gem.c
b/drivers/gpu/drm/drm_gem.c
index f3c1bbcf807f60e2281529ef85d32364b1d7df75..44978bcf81255acd3b0c384d37c4fdc0c2c267eb 100644
(file)
--- a/
drivers/gpu/drm/drm_gem.c
+++ b/
drivers/gpu/drm/drm_gem.c
@@
-238,9
+238,6
@@
static void drm_gem_object_handle_free(struct drm_gem_object *obj)
void
drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
{
- if (obj == NULL)
- return;
-
if (atomic_read(&obj->handle_count) == 0)
return;