Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Paul Bolle and committed by
Jiri Kosina
cdb650a4 7422caa5

+2 -2
+1 -1
drivers/gpu/drm/radeon/radeon_fence.c
··· 322 322 323 323 *fence = NULL; 324 324 if (tmp) { 325 - kref_put(&tmp->kref, &radeon_fence_destroy); 325 + kref_put(&tmp->kref, radeon_fence_destroy); 326 326 } 327 327 } 328 328
+1 -1
drivers/gpu/drm/ttm/ttm_object.c
··· 206 206 */ 207 207 208 208 write_lock(&tdev->object_lock); 209 - (void)kref_put(&base->refcount, &ttm_release_base); 209 + kref_put(&base->refcount, ttm_release_base); 210 210 write_unlock(&tdev->object_lock); 211 211 } 212 212 EXPORT_SYMBOL(ttm_base_object_unref);