Commit 6e0b3f8d authored by kbuild test robot's avatar kbuild test robot Committed by Daniel Vetter

drm/i915: fix simple_return.cocci warnings

drivers/gpu/drm/i915/intel_ringbuffer.c:435:1-4: WARNING: end returns can be simpified

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci

CC: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 6ea2556f
...@@ -432,11 +432,7 @@ gen8_render_ring_flush(struct intel_engine_cs *ring, ...@@ -432,11 +432,7 @@ gen8_render_ring_flush(struct intel_engine_cs *ring,
return ret; return ret;
} }
ret = gen8_emit_pipe_control(ring, flags, scratch_addr); return gen8_emit_pipe_control(ring, flags, scratch_addr);
if (ret)
return ret;
return 0;
} }
static void ring_write_tail(struct intel_engine_cs *ring, static void ring_write_tail(struct intel_engine_cs *ring,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment