summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2018-01-26 14:55:10 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 20:18:59 +0100
commit449f797a94f206e15a088adabb26c7cc42aa79b4 (patch)
treeec2637e8ff29f8c52a0ebcba09a2d6e983b6c859 /drivers/gpu/drm/ttm
parentdrm/ttm: Simplify ttm_dma_find_pool() (v2) (diff)
downloadlinux-449f797a94f206e15a088adabb26c7cc42aa79b4.tar.xz
linux-449f797a94f206e15a088adabb26c7cc42aa79b4.zip
drm/ttm: Fix coding style in ttm_bo_move_memcpy()
Add missing {} braces. Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index 153de1bf0232..33ffe286f3a5 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -402,8 +402,9 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
PAGE_KERNEL);
ret = ttm_copy_io_ttm_page(ttm, old_iomap, page,
prot);
- } else
+ } else {
ret = ttm_copy_io_page(new_iomap, old_iomap, page);
+ }
if (ret)
goto out1;
}