mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
This fixes MISRA rule 4.7 violations in the function nvgpu_vm_map(). The violations were caused by trying to use ERR_PTR() to return error information. Rather than try to return errors in a pointer, just change the API to return an int and pass the pointer the arguments. JIRA NVGPU-3332 Change-Id: I2852a6de808d9203b8c7826e2b8211bab97ccd16 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2114027 GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
9.2 KiB
9.2 KiB