if (modifier == DRM_FORMAT_MOD_LINEAR)
                return true;
 
-       /* without a PRG there are no supported modifiers */
-       if (!ipu_prg_present(ipu))
-               return false;
-
+       /*
+        * Without a PRG the possible modifiers list only includes the linear
+        * modifier, so we always take the early return from this function and
+        * only end up here if the PRG is present.
+        */
        return ipu_prg_format_supported(ipu, format, modifier);
 }
 
                formats = ipu_plane_rgb_formats;
                format_count = ARRAY_SIZE(ipu_plane_rgb_formats);
        }
+
+       if (ipu_prg_present(ipu))
+               modifiers = pre_format_modifiers;
+
        ipu_plane = drmm_universal_plane_alloc(dev, struct ipu_plane, base,
                                               possible_crtcs, &ipu_plane_funcs,
                                               formats, format_count, modifiers,
        ipu_plane->dma = dma;
        ipu_plane->dp_flow = dp;
 
-       if (ipu_prg_present(ipu))
-               modifiers = pre_format_modifiers;
-
        drm_plane_helper_add(&ipu_plane->base, &ipu_plane_helper_funcs);
 
        if (dp == IPU_DP_FLOW_SYNC_BG || dp == IPU_DP_FLOW_SYNC_FG)