Commit 713a7507 authored by Anatoliy Klymenko's avatar Anatoliy Klymenko Committed by Thomas Zimmermann

drm: xlnx: zynqmp_dpsub: Fix compilation error

Fix W=1 clang 19 compilation error in zynqmp_disp_layer_drm_formats().
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404260946.4oZXvHD2-lkp@intel.com/Signed-off-by: default avatarAnatoliy Klymenko <anatoliy.klymenko@amd.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fixes: b0f0469a ("drm: xlnx: zynqmp_dpsub: Anounce supported input formats")
Link: https://patchwork.freedesktop.org/patch/msgid/20240426-dp-live-fmt-fix-v3-2-e904b5ae51d7@amd.com
(cherry picked from commit c7221175)
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
parent ced8c517
......@@ -981,7 +981,7 @@ u32 *zynqmp_disp_layer_drm_formats(struct zynqmp_disp_layer *layer,
unsigned int i;
u32 *formats;
if (WARN_ON(!layer->mode == ZYNQMP_DPSUB_LAYER_NONLIVE)) {
if (WARN_ON(layer->mode != ZYNQMP_DPSUB_LAYER_NONLIVE)) {
*num_formats = 0;
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment