mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Correct misra error in gr unit
Correct 5.3 misra error in gr ecc unit misra_c_2012_rule_5_3_violation: Declaration with identifier "err" hides another declaration. Change the variable name inside the function. Jira NVGPU-4085 Change-Id: Ib8cd62ce98da1cf1bf327eb8dd92e51c1b77d6f4 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2209867 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>
This commit is contained in:
@@ -194,19 +194,19 @@ static int gv11b_ecc_init_sm_uncorrected_err_count(struct gk20a *g)
|
||||
|
||||
static int gv11b_ecc_init_tpc(struct gk20a *g)
|
||||
{
|
||||
int err;
|
||||
int ret;
|
||||
|
||||
NVGPU_ECC_COUNTER_INIT_PER_TPC(sm_lrf_ecc_single_err_count);
|
||||
NVGPU_ECC_COUNTER_INIT_PER_TPC(sm_lrf_ecc_double_err_count);
|
||||
|
||||
err = gv11b_ecc_init_sm_corrected_err_count(g);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
ret = gv11b_ecc_init_sm_corrected_err_count(g);
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
err = gv11b_ecc_init_sm_uncorrected_err_count(g);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
ret = gv11b_ecc_init_sm_uncorrected_err_count(g);
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user