From: Tom St Denis Date: Fri, 26 Jan 2018 13:55:10 +0000 (-0500) Subject: drm/ttm: Fix coding style in ttm_bo_move_memcpy() X-Git-Tag: v4.17-rc1~185^2~22^2~146 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=449f797a94f206e15a088adabb26c7cc42aa79b4;p=users%2Fjedix%2Flinux-maple.git drm/ttm: Fix coding style in ttm_bo_move_memcpy() Add missing {} braces. Signed-off-by: Tom St Denis Reviewed-by: Christian König Signed-off-by: Alex Deucher --- 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; }