gpu: nvgpu: change nvgpu_init_mm_reset_enable_hw to return void

The nvgpu_init_mm_reset_enable_hw was always returning 0. This patch
changes it to return void instead which removes some useless error
checking.

JIRA NVGPU-3650

Change-Id: I34ddfb63384f4dbf9e682660f9951c11e5204418
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2191098
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2019-09-05 14:36:54 -04:00
committed by Alex Waterman
parent 4f47e36848
commit a8afa823f9

View File

@@ -320,7 +320,7 @@ void nvgpu_init_mm_ce_context(struct gk20a *g)
}
#endif
static int nvgpu_init_mm_reset_enable_hw(struct gk20a *g)
static void nvgpu_init_mm_reset_enable_hw(struct gk20a *g)
{
if (g->ops.mc.fb_reset != NULL) {
g->ops.mc.fb_reset(g);
@@ -333,8 +333,6 @@ static int nvgpu_init_mm_reset_enable_hw(struct gk20a *g)
if (g->ops.fb.init_fs_state != NULL) {
g->ops.fb.init_fs_state(g);
}
return 0;
}
static int nvgpu_init_bar1_vm(struct mm_gk20a *mm)
@@ -604,10 +602,7 @@ int nvgpu_init_mm_support(struct gk20a *g)
{
int err;
err = nvgpu_init_mm_reset_enable_hw(g);
if (err != 0) {
return err;
}
nvgpu_init_mm_reset_enable_hw(g);
err = nvgpu_init_mm_pdb_cache_war(g);
if (err != 0) {