mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
Rule 2.2 doesn't allow unused variable assignments. The reason is presence of unused variable assignments may indicate error in program's logic. Rule 7.2 requires all unsigned numeric literals to use a "u"/"U" suffix. Rule 8.3 requires all functions and prototypes to have same parameter names and type qualifier. Rule 10.x necessitates operands to have essential type; left and right operands should be of same width and type. Rule 12.2 requires right hand operand of shift operator to be within range 0 to 1 less than width of left hand operand. This patch fixes above mentioned rules in hal/sync/syncpt_cmdbuf_gv11b.c Jira NVGPU-3884 Change-Id: Ia375b2e08f48bc82fb641a48f4f5a5a75455217d Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2168708 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User 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>