diff options
author | Dave Airlie <airlied@redhat.com> | 2020-07-28 07:00:03 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-07-29 02:43:06 +0300 |
commit | 08bb88cfc4f0c5ac9053197ced139bf116a91280 (patch) | |
tree | d409d14529d971661be7c4db713f52d658fcb1f4 /drivers/gpu/drm/ttm/ttm_tt.c | |
parent | 92be42392256b30296843aa4d987ad8d175c0e10 (diff) | |
download | linux-08bb88cfc4f0c5ac9053197ced139bf116a91280.tar.xz |
drm/ttm: make ttm_tt unbind function return void.
The return value just led to BUG_ON, I think if a driver wants
to BUG_ON here it can do it itself. (don't BUG_ON).
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200728040003.20398-1-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_tt.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_tt.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index e25d4097aa16..bab67873cfd4 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -313,11 +313,8 @@ EXPORT_SYMBOL(ttm_dma_tt_fini); void ttm_tt_unbind(struct ttm_tt *ttm) { - int ret; - if (ttm->state == tt_bound) { - ret = ttm->func->unbind(ttm); - BUG_ON(ret); + ttm->func->unbind(ttm); ttm->state = tt_unbound; } } |