mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 18:42:29 +03:00
gr config is allocated and initialized as part of gr_init_setup_sw(). The sw setup is done before gr_init_setup_hw() where sm id table is initialized. This makes the gr_config == NULL check redundant. Fix the coverity issue (dereference before null check) by removing the redundant check. JIRA NVGPU-4026 Change-Id: I16a8700ff5fee524c2e32e75b621e74c59c8e44f Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2199360 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: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>