diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2015-03-05 09:03:08 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-03-17 17:30:00 -0400 |
commit | 6e0b3f8d64252664f240f0cbd23e3d22ce3df001 (patch) | |
tree | 3899777bf2adfbf8d9e5fd9c634b659657e6b677 /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | 6ea2556f3e2549284331a3a29a5984f859c3cd5b (diff) |
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: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index e9858d2e92d0..441e2502b889 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -432,11 +432,7 @@ gen8_render_ring_flush(struct intel_engine_cs *ring, | |||
432 | return ret; | 432 | return ret; |
433 | } | 433 | } |
434 | 434 | ||
435 | ret = gen8_emit_pipe_control(ring, flags, scratch_addr); | 435 | return gen8_emit_pipe_control(ring, flags, scratch_addr); |
436 | if (ret) | ||
437 | return ret; | ||
438 | |||
439 | return 0; | ||
440 | } | 436 | } |
441 | 437 | ||
442 | static void ring_write_tail(struct intel_engine_cs *ring, | 438 | static void ring_write_tail(struct intel_engine_cs *ring, |