[Intel-gfx] [PATCH] drm/i915/overlay: remove redundant GEM_BUG_ON()
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Wed Jun 8 08:04:20 UTC 2022
On 16/05/2022 09:10, Jani Nikula wrote:
> There's an early return for !engine->kernel_context.
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_overlay.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_overlay.c b/drivers/gpu/drm/i915/display/intel_overlay.c
> index ee46561b5ae8..79ed8bd04a07 100644
> --- a/drivers/gpu/drm/i915/display/intel_overlay.c
> +++ b/drivers/gpu/drm/i915/display/intel_overlay.c
> @@ -1399,8 +1399,6 @@ void intel_overlay_setup(struct drm_i915_private *dev_priv)
>
> overlay->i915 = dev_priv;
> overlay->context = engine->kernel_context;
> - GEM_BUG_ON(!overlay->context);
> -
> overlay->color_key = 0x0101fe;
> overlay->color_key_enabled = true;
> overlay->brightness = -19;
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Regards,
Tvrtko
More information about the Intel-gfx
mailing list