mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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:
committed by
mobile promotions
parent
0d4ef5fa34
commit
6e83701982
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user