diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2011-02-27 01:34:08 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-04-10 17:01:02 +0200 |
commit | cdb650a4b5eaf1c0aedbfd7dd6afd6d465c3b0a0 (patch) | |
tree | 89e97d86e6af190b0dab9f1359055ebbd2710825 /drivers/gpu/drm/ttm | |
parent | 7422caa5a1a53ee6b21a687c61cc5435edf8c19f (diff) | |
download | linux-3.10-cdb650a4b5eaf1c0aedbfd7dd6afd6d465c3b0a0.tar.gz linux-3.10-cdb650a4b5eaf1c0aedbfd7dd6afd6d465c3b0a0.tar.bz2 linux-3.10-cdb650a4b5eaf1c0aedbfd7dd6afd6d465c3b0a0.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_object.c b/drivers/gpu/drm/ttm/ttm_object.c index 75e9d6f86ba..ebddd443d91 100644 --- a/drivers/gpu/drm/ttm/ttm_object.c +++ b/drivers/gpu/drm/ttm/ttm_object.c @@ -206,7 +206,7 @@ void ttm_base_object_unref(struct ttm_base_object **p_base) */ 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); } EXPORT_SYMBOL(ttm_base_object_unref); |