mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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:
committed by
mobile promotions
parent
f2979bcdac
commit
34b34915f8
@@ -72,10 +72,10 @@ void nvgpu_nvlink_free_minion_used_mem(struct gk20a *g,
|
||||
/*
|
||||
* Load minion FW
|
||||
*/
|
||||
u32 nvgpu_nvlink_minion_load_ucode(struct gk20a *g,
|
||||
int nvgpu_nvlink_minion_load_ucode(struct gk20a *g,
|
||||
struct nvgpu_firmware *nvgpu_minion_fw)
|
||||
{
|
||||
u32 err = 0;
|
||||
int err = 0;
|
||||
struct nvlink_device *ndev = (struct nvlink_device *) g->nvlink.priv;
|
||||
struct minion_hdr *minion_hdr = &ndev->minion_hdr;
|
||||
u32 data_idx = 0;
|
||||
|
||||
Reference in New Issue
Block a user