mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
drm/amd/display: Remove redundant checks for opp
The null checks for opp are redundant as they were already dereferenced previously, as reported by Coverity; therefore the null checks are removed. This fixes 2 REVERSE_INULL issues reported by Coverity. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
14f293e044
commit
8a1708328c
|
|
@ -1260,7 +1260,7 @@ void dcn10_plane_atomic_disconnect(struct dc *dc,
|
|||
mpc->funcs->remove_mpcc(mpc, mpc_tree_params, mpcc_to_remove);
|
||||
// Phantom pipes have OTG disabled by default, so MPCC_STATUS will never assert idle,
|
||||
// so don't wait for MPCC_IDLE in the programming sequence
|
||||
if (opp != NULL && dc_state_get_pipe_subvp_type(state, pipe_ctx) != SUBVP_PHANTOM)
|
||||
if (dc_state_get_pipe_subvp_type(state, pipe_ctx) != SUBVP_PHANTOM)
|
||||
opp->mpcc_disconnect_pending[pipe_ctx->plane_res.mpcc_inst] = true;
|
||||
|
||||
dc->optimized_required = true;
|
||||
|
|
|
|||
|
|
@ -408,8 +408,7 @@ void dcn201_plane_atomic_disconnect(struct dc *dc,
|
|||
if (mpcc_removed == false)
|
||||
return;
|
||||
|
||||
if (opp != NULL)
|
||||
opp->mpcc_disconnect_pending[pipe_ctx->plane_res.mpcc_inst] = true;
|
||||
opp->mpcc_disconnect_pending[pipe_ctx->plane_res.mpcc_inst] = true;
|
||||
|
||||
dc->optimized_required = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user