amd/vpelib: Fix CodeQL issues Pt1
[WHY] Redundant / inconsisten nullptr checks Reviewed-by: Jude Shih <Jude.Shih@amd.com> Reviewed-by: Evan Damphousse <Evan.Damphousse@amd.com> Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com> Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012>
This commit is contained in:
committed by
ChuanYu Tseng (Max)
parent
134b5bede7
commit
360d252888
@@ -1141,7 +1141,7 @@ void vpe10_mpc_program_1dlut(struct mpc *mpc, const struct pwl_params *params, e
|
||||
{
|
||||
PROGRAM_ENTRY();
|
||||
|
||||
if ((params == NULL) || (vpe_priv == NULL) ||
|
||||
if ((params == NULL) ||
|
||||
(vpe_priv->init.debug.bypass_blndgam == true)) { // the bypass flag is used in debug mode to skip this block entirely
|
||||
REG_SET(VPMPCC_MCM_1DLUT_CONTROL, REG_DEFAULT(VPMPCC_MCM_1DLUT_CONTROL),
|
||||
VPMPCC_MCM_1DLUT_MODE, 0);
|
||||
|
||||
@@ -731,9 +731,7 @@ bool vpe_color_calculate_input_cs(struct vpe_priv *vpe_priv, enum color_space in
|
||||
bright_norm_factor = bright_norm_factor_10bit;
|
||||
}
|
||||
|
||||
if (vpe_blt_adjust) {
|
||||
translate_blt_to_internal_adjustments(&vpe_in_adjust, &vpe_adjust);
|
||||
}
|
||||
translate_blt_to_internal_adjustments(&vpe_in_adjust, &vpe_adjust);
|
||||
|
||||
switch (in_cs) {
|
||||
case COLOR_SPACE_SRGB:
|
||||
|
||||
Reference in New Issue
Block a user