diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 030ca31e6f3e..58d40e5687b2 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -772,8 +772,6 @@ static int vop_convert_afbc_format(uint32_t format) DRM_WARN_ONCE("unsupported AFBC format[%08x]\n", format); return -EINVAL; } - - return -EINVAL; } static bool is_uv_swap(uint32_t bus_format, uint32_t output_mode)