diff options
| author | 2018-01-25 13:29:42 -0500 | |
|---|---|---|
| committer | 2018-02-19 14:19:01 -0500 | |
| commit | ddde985c41758f5f7daac78256f4fa20f5cd4a1a (patch) | |
| tree | 919bfa856469300c6fbf3e9e835798e7eb4666df | |
| parent | drm/ttm: Simplify ttm_eu_reserve_buffers() (diff) | |
drm/ttm: Fix coding style in ttm_tt_swapout()
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>
| -rw-r--r-- | drivers/gpu/drm/ttm/ttm_tt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index e90d3ed6283f..95a77dab8cc9 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -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; |
