Browse Source

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>
Tom St Denis 7 years ago
parent
commit
ddde985c41
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/gpu/drm/ttm/ttm_tt.c

+ 2 - 1
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");
 			pr_err("Failed allocating swap storage\n");
 			return PTR_ERR(swap_storage);
 			return PTR_ERR(swap_storage);
 		}
 		}
-	} else
+	} else {
 		swap_storage = persistent_swap_storage;
 		swap_storage = persistent_swap_storage;
+	}
 
 
 	swap_space = swap_storage->f_mapping;
 	swap_space = swap_storage->f_mapping;