diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-15 00:02:35 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 19:13:42 +0900 |
commit | 50f6fafe2ae9f0b56e848f72a333d13bc1a21f11 (patch) | |
tree | 12a008f0eaa06292817a1e594f87cc0c9d17c903 /drivers | |
parent | 960de89f44b5cbdad2cf286861b929505b5ad9be (diff) | |
download | linux-3.10-50f6fafe2ae9f0b56e848f72a333d13bc1a21f11.tar.gz linux-3.10-50f6fafe2ae9f0b56e848f72a333d13bc1a21f11.tar.bz2 linux-3.10-50f6fafe2ae9f0b56e848f72a333d13bc1a21f11.zip |
drm/gem: remove bogus NULL check from drm_gem_object_handle_unreference_unlocked
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_gem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 407c1f44f02..21a6cbce8e0 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -301,9 +301,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; |