Commit cdb650a4 authored by Paul Bolle's avatar Paul Bolle Committed by Jiri Kosina

drm: minor kref_put() nits

There's no need to pass kref_put() the address of a function (just the
function will do just fine) nor to cast its unused return to void.
Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 7422caa5
...@@ -322,7 +322,7 @@ void radeon_fence_unref(struct radeon_fence **fence) ...@@ -322,7 +322,7 @@ void radeon_fence_unref(struct radeon_fence **fence)
*fence = NULL; *fence = NULL;
if (tmp) { if (tmp) {
kref_put(&tmp->kref, &radeon_fence_destroy); kref_put(&tmp->kref, radeon_fence_destroy);
} }
} }
......
...@@ -206,7 +206,7 @@ void ttm_base_object_unref(struct ttm_base_object **p_base) ...@@ -206,7 +206,7 @@ void ttm_base_object_unref(struct ttm_base_object **p_base)
*/ */
write_lock(&tdev->object_lock); write_lock(&tdev->object_lock);
(void)kref_put(&base->refcount, &ttm_release_base); kref_put(&base->refcount, ttm_release_base);
write_unlock(&tdev->object_lock); write_unlock(&tdev->object_lock);
} }
EXPORT_SYMBOL(ttm_base_object_unref); EXPORT_SYMBOL(ttm_base_object_unref);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment