diff options
author | Saud Farooqui <farooqui_saud@hotmail.com> | 2022-06-22 13:59:17 +0500 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-06-22 16:42:25 +0200 |
commit | 85016f66af8506cb601fd4f4fde23ed327a266be (patch) | |
tree | dc8098b9919e6f0cc16ce63f2aff26b9f39146d5 | |
parent | 3026b5ca06fa872147f9726ca7c1f658bae71abf (diff) |
drm/sun4i: Return if frontend is not presentdrm-misc-fixes-2022-06-23
Added return statement in sun4i_layer_format_mod_supported()
in case frontend is not present.
Signed-off-by: Saud Farooqui <farooqui_saud@hotmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/PA4P189MB1421E93EF5F8E8E00E71B7878BB29@PA4P189MB1421.EURP189.PROD.OUTLOOK.COM
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_layer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 6d43080791a0..85fb9e800ddf 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -117,7 +117,7 @@ static bool sun4i_layer_format_mod_supported(struct drm_plane *plane, struct sun4i_layer *layer = plane_to_sun4i_layer(plane); if (IS_ERR_OR_NULL(layer->backend->frontend)) - sun4i_backend_format_is_supported(format, modifier); + return sun4i_backend_format_is_supported(format, modifier); return sun4i_backend_format_is_supported(format, modifier) || sun4i_frontend_format_is_supported(format, modifier); |