mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
There are 2 instances where some code is unreachable in vm.c - The nvgpu_insert_mapped_buf function always returned 0, so any associated error handling was unreachable. This patch changes the function to return void instead. - A cleanup section to unmap a buffer in case of error was also unreachable. JIRA NVGPU-909 Change-Id: I6d8343b2994d314992a61dd640b10e68fbbc5e1e Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2217677 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Shashank Singh <shashsingh@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>
41 KiB
41 KiB