gpu: nvgpu: runlist MISRA fixes for Rule 15.7

All "if(expr) else if" constructs shall be terminated with
an else statement. Re-factored checks to avoid "else if"
statement.

Jira NVGPU-3379

Change-Id: Idf8a80a3f314fcf3f3b7a0c6f01bbb9d2202bdf2
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2109683
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-05-01 14:31:20 -07:00
committed by mobile promotions
parent 0d4ef5fa34
commit 6e83701982

View File

@@ -431,8 +431,10 @@ int nvgpu_runlist_update_locked(struct gk20a *g, u32 runlist_id,
/* trigger runlist update timeout recovery */
return ret;
} else if (ret == -EINTR) {
nvgpu_err(g, "runlist update interrupted");
} else {
if (ret == -EINTR) {
nvgpu_err(g, "runlist update interrupted");
}
}
}