mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: submit MISRA fixes for Rule 15.7
Refactored if / else statements in nvgpu_submit_channel_gpfifo to avoid "else if" with no terminating "else" statement. Jira NVGPU-3384 Change-Id: If553901f418455d77c372fd1d7113553a21096e1 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2111611 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
8b32821634
commit
9f5ca49a07
@@ -591,8 +591,10 @@ clean_up:
|
||||
nvgpu_fence_put(post_fence);
|
||||
if (c->deterministic) {
|
||||
nvgpu_rwsem_up_read(&g->deterministic_busy);
|
||||
} else if (need_deferred_cleanup) {
|
||||
gk20a_idle(g);
|
||||
} else {
|
||||
if (need_deferred_cleanup) {
|
||||
gk20a_idle(g);
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user