mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
Rule INT31 requires integer conversions do not result in losing or misinterpreting data. For most cases, use the safe cast operations. For one case, the conditional operator was being used for s16 values which were being promoted to ints. So, replace the conditional operator with an if statement. JIRA NVGPU-3517 Change-Id: Iac466911b0dd3893e7e7a188e372272b14591b60 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2127425 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>