projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'drm-for-v4.8' of git://people.freedesktop.org/~airlied/linux
[linux-2.6-block.git]
/
drivers
/
gpu
/
drm
/
ttm
/
ttm_tt.c
diff --git
a/drivers/gpu/drm/ttm/ttm_tt.c
b/drivers/gpu/drm/ttm/ttm_tt.c
index 97542c35d6efa4ab2adde3b19af61f20f95e31be..bc5aa573f466f12384b1746053db66436e133a95 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_tt.c
+++ b/
drivers/gpu/drm/ttm/ttm_tt.c
@@
-166,12
+166,10
@@
EXPORT_SYMBOL(ttm_tt_set_placement_caching);
void ttm_tt_destroy(struct ttm_tt *ttm)
{
- if (
unlikely(ttm == NULL)
)
+ if (
ttm == NULL
)
return;
- if (ttm->state == tt_bound) {
- ttm_tt_unbind(ttm);
- }
+ ttm_tt_unbind(ttm);
if (ttm->state == tt_unbound)
ttm_tt_unpopulate(ttm);