gpu: nvgpu: fix MISRA 17.7 in falcon_bootstrap

MISRA Rule-17.7 requires the return value of all functions to be used.
Fix is either to use the return value or change the function to return
void. This patch changes calls to nvgpu_falcon_bootstrap to handle
error codes.

JIRA NVGPU-677

Change-Id: I1d9df6053c727e7eb3d99682ff7bb06267608a54
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2008797
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2019-01-31 14:17:52 -05:00
committed by mobile promotions
parent f2979bcdac
commit 34b34915f8
9 changed files with 36 additions and 19 deletions

View File

@@ -214,7 +214,11 @@ int gv100_fb_memory_unlock(struct gk20a *g)
FALCON_MAILBOX_0, 0xdeadbeefU);
/* set BOOTVEC to start of non-secure code */
nvgpu_falcon_bootstrap(g->nvdec_flcn, 0);
err = nvgpu_falcon_bootstrap(g->nvdec_flcn, 0);
if (err != 0) {
nvgpu_err(g, "falcon bootstrap failed %d", err);
goto exit;
}
/* wait for complete & halt */
nvgpu_falcon_wait_for_halt(g->nvdec_flcn, MEM_UNLOCK_TIMEOUT);