aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom St Denis <[email protected]>2018-01-25 13:29:42 -0500
committerAlex Deucher <[email protected]>2018-02-19 14:19:01 -0500
commitddde985c41758f5f7daac78256f4fa20f5cd4a1a (patch)
tree919bfa856469300c6fbf3e9e835798e7eb4666df
parent07d48da4f45c1990562f0cc4869194013308fb70 (diff)
drm/ttm: Fix coding style in ttm_tt_swapout()
Add missing {} braces. Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/ttm/ttm_tt.c3
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;