mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: Fix LibC MISRA 17.7 in common
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 contains fix for all 17.7 violations instandard C functions in common code. JIRA NVGPU-1036 Change-Id: Id6dea92df371e71b22b54cd7a521fc22812f9b69 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1929899 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
27b47c20bd
commit
cb2a05dd92
@@ -73,7 +73,7 @@ static int gk20a_vm_alloc_share(struct gk20a_as_share *as_share,
|
||||
}
|
||||
}
|
||||
|
||||
snprintf(name, sizeof(name), "as_%d", as_share->id);
|
||||
(void) snprintf(name, sizeof(name), "as_%d", as_share->id);
|
||||
|
||||
vm = nvgpu_vm_init(g, big_page_size,
|
||||
U64(big_page_size) << U64(10),
|
||||
|
||||
Reference in New Issue
Block a user