mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
5bdffee1a88116be966e9a4138acda3680a5745a
MISRA Rule 10.3 states that the value of an expression shall not be assigned to an object with a narrower essential type or of a different esseential type category. For example, assigning an unsigned 32bit value (u32) to a signed 32bit value (int) is not permitted. This patch modifies the gr_gk20a_init_golden_ctx_image() and gk20a_init_sw_bundle() routines to use an int (instead of u32) for return status handling making them consistent with the other gr routines used in this part of the gr object allocation path. JIRA NVGPU-647 Change-Id: I53c47d9a169bd0d4cdbce107bd4ad8e7978ae01d Signed-off-by: Scott Long <scottl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1965735 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided