From 0d4ef5fa345b6b57862f3aa838103e2f787bf9b5 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Wed, 1 May 2019 14:25:44 -0700 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2109682 GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan Reviewed-by: Adeel Raza Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/runlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/common/fifo/runlist.c b/drivers/gpu/nvgpu/common/fifo/runlist.c index dba552133..b12351a64 100644 --- a/drivers/gpu/nvgpu/common/fifo/runlist.c +++ b/drivers/gpu/nvgpu/common/fifo/runlist.c @@ -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); } }