diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2011-02-26 19:34:08 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-04-10 11:01:02 -0400 |
commit | cdb650a4b5eaf1c0aedbfd7dd6afd6d465c3b0a0 (patch) | |
tree | 89e97d86e6af190b0dab9f1359055ebbd2710825 /drivers/gpu/drm/radeon/radeon_fence.c | |
parent | 7422caa5a1a53ee6b21a687c61cc5435edf8c19f (diff) |
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/radeon/radeon_fence.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 9e59868d354e..ab83472553c6 100644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c | |||
@@ -322,7 +322,7 @@ void radeon_fence_unref(struct radeon_fence **fence) | |||
322 | 322 | ||
323 | *fence = NULL; | 323 | *fence = NULL; |
324 | if (tmp) { | 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 | ||