mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: runlist MISRA fixes for Rule 14.3
Removed (engine_info != NULL) test in nvgpu_init_runlist_enginfo, as it cannot be NULL by construction. Jira NVGPU-3379 Change-Id: I76392a1adf7d4d1c1438a67a0142f4e50ca68eab Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2109682 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
af84bdaae8
commit
0d4ef5fa34
@@ -667,8 +667,7 @@ static void nvgpu_init_runlist_enginfo(struct gk20a *g, struct fifo_gk20a *f)
|
||||
active_engine_id = f->active_engines_list[engine_id];
|
||||
engine_info = &f->engine_info[active_engine_id];
|
||||
|
||||
if ((engine_info != NULL) &&
|
||||
(engine_info->runlist_id == runlist->runlist_id)) {
|
||||
if (engine_info->runlist_id == runlist->runlist_id) {
|
||||
runlist->eng_bitmask |= BIT32(active_engine_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user