Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95b2ab56 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Remove redundant WARN_ON from __i915_add_request()

parent 2bd160a1
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -470,18 +470,12 @@ static void i915_gem_mark_busy(const struct intel_engine_cs *engine)
 */
void __i915_add_request(struct drm_i915_gem_request *request, bool flush_caches)
{
	struct intel_engine_cs *engine;
	struct intel_ring *ring;
	struct intel_engine_cs *engine = request->engine;
	struct intel_ring *ring = request->ring;
	u32 request_start;
	u32 reserved_tail;
	int ret;

	if (WARN_ON(!request))
		return;

	engine = request->engine;
	ring = request->ring;

	/*
	 * To ensure that this call will not fail, space for its emissions
	 * should already have been reserved in the ring buffer. Let the ring