summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
62e9e50)
Calling this function with a NULL object is simply a bug, so papering
over a NULL object not a good idea.
Change-Id: I412d7ced57a75fd5281d05d584092df9bc420408
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
void
drm_gem_object_handle_unreference_unlocked(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;
if (atomic_read(&obj->handle_count) == 0)
return;