mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
MISRA 4.7 requires checking errors returned by functions. This fixes a case where the error information wasn't being checked before performing other operations. JIRA NVGPU-3340 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Change-Id: I480fde75a07f779450096533ab29c76975aff092 Reviewed-on: https://git-master.nvidia.com/r/2120489 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@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>