Skip to content

Commit 713a750

Browse files
Anatoliy KlymenkoThomas Zimmermann
authored andcommitted
drm: xlnx: zynqmp_dpsub: Fix compilation error
Fix W=1 clang 19 compilation error in zynqmp_disp_layer_drm_formats(). Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Anatoliy Klymenko <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Fixes: b0f0469 ("drm: xlnx: zynqmp_dpsub: Anounce supported input formats") Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit c722117) Signed-off-by: Thomas Zimmermann <[email protected]>
1 parent ced8c51 commit 713a750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xlnx/zynqmp_disp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ u32 *zynqmp_disp_layer_drm_formats(struct zynqmp_disp_layer *layer,
981981
unsigned int i;
982982
u32 *formats;
983983

984-
if (WARN_ON(!layer->mode == ZYNQMP_DPSUB_LAYER_NONLIVE)) {
984+
if (WARN_ON(layer->mode != ZYNQMP_DPSUB_LAYER_NONLIVE)) {
985985
*num_formats = 0;
986986
return NULL;
987987
}

0 commit comments

Comments
 (0)