mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
feb3ba3d59d34f046cddada15aaf25293840ea53
Reduce code complexity of following functions in gr.falcon unit gm20b_gr_falcon_ctx_wait_ucode(complexity : 21 to 9) Create sub functions by moving the control statement codes from the function which has high complexity above 10. Create two sub functions from gm20b_gr_falcon_ctx_wait_ucode function Sub functions to check the opcode failure and opcode success. gm20b_gr_falcon_check_ctx_opcode_success(with complexity : 7) gm20b_gr_falcon_check_ctx_opcode_failure(with complexity : 7) and reduce gm20b_gr_falcon_ctx_wait_ucode complexity to 9 Jira NVGPU-3662 Change-Id: I445dab4e4149af2cc88d19a5b18b105077dece5f Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2165217 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: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided