File tree Expand file tree Collapse file tree
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -915,8 +915,8 @@ static int gmc_v6_0_hw_init(void *handle)
915915
916916 if (amdgpu_emu_mode == 1 )
917917 return amdgpu_gmc_vram_checking (adev );
918- else
919- return r ;
918+
919+ return 0 ;
920920}
921921
922922static int gmc_v6_0_hw_fini (void * handle )
Original file line number Diff line number Diff line change @@ -1099,8 +1099,8 @@ static int gmc_v7_0_hw_init(void *handle)
10991099
11001100 if (amdgpu_emu_mode == 1 )
11011101 return amdgpu_gmc_vram_checking (adev );
1102- else
1103- return r ;
1102+
1103+ return 0 ;
11041104}
11051105
11061106static int gmc_v7_0_hw_fini (void * handle )
Original file line number Diff line number Diff line change @@ -1219,8 +1219,8 @@ static int gmc_v8_0_hw_init(void *handle)
12191219
12201220 if (amdgpu_emu_mode == 1 )
12211221 return amdgpu_gmc_vram_checking (adev );
1222- else
1223- return r ;
1222+
1223+ return 0 ;
12241224}
12251225
12261226static int gmc_v8_0_hw_fini (void * handle )
Original file line number Diff line number Diff line change @@ -2341,8 +2341,8 @@ static int gmc_v9_0_hw_init(void *handle)
23412341
23422342 if (amdgpu_emu_mode == 1 )
23432343 return amdgpu_gmc_vram_checking (adev );
2344- else
2345- return r ;
2344+
2345+ return 0 ;
23462346}
23472347
23482348/**
You can’t perform that action at this time.
0 commit comments