OSDN Git Service

drm/ttm: Fix coding style in ttm_bo_move_memcpy()
authorTom St Denis <tom.stdenis@amd.com>
Fri, 26 Jan 2018 13:55:10 +0000 (08:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:59 +0000 (14:18 -0500)
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>
drivers/gpu/drm/ttm/ttm_bo_util.c

index 153de1b..33ffe28 100644 (file)
@@ -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;
        }