OSDN Git Service

drm/ttm: Fix coding style in ttm_tt_swapout()
authorTom St Denis <tom.stdenis@amd.com>
Thu, 25 Jan 2018 18:29:42 +0000 (13:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:01 +0000 (14:19 -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_tt.c

index e90d3ed..95a77da 100644 (file)
@@ -352,8 +352,9 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistent_swap_storage)
                        pr_err("Failed allocating swap storage\n");
                        return PTR_ERR(swap_storage);
                }
-       } else
+       } else {
                swap_storage = persistent_swap_storage;
+       }
 
        swap_space = swap_storage->f_mapping;