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:
Thomas Fleury
2019-05-03 14:27:30 -07:00
committed by mobile promotions
parent 8b32821634
commit 9f5ca49a07

View File

@@ -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;