summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDembskiy Igor <dii@itb.spb.ru>2023-08-30 17:01:03 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-09-06 14:31:17 -0400
commit19d5f80128d7a197fcb465f21465c30ee4c36f25 (patch)
tree6146aadba3cb90edd4f1188f1a8190c855752884 /drivers
parent63461ea3fb403be0d040be3c88e621b55672e26a (diff)
drm/amd/display: remove useless check in should_enable_fbc()
It does not make sense to compare a pointer to array element with NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 65d38262b3e8 ("drm/amd/display: fbc state could not reach while enable fbc") Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Dembskiy Igor <dii@itb.spb.ru> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index d0b3e29fe83e..602fb149dc10 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -1997,9 +1997,6 @@ static bool should_enable_fbc(struct dc *dc,
pipe_ctx = &res_ctx->pipe_ctx[i];
- if (!pipe_ctx)
- continue;
-
/* fbc not applicable on underlay pipe */
if (pipe_ctx->pipe_idx != underlay_idx) {
*pipe_idx = i;