drm/i915: fix simple_return.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Thu, 5 Mar 2015 14:03:08 +0000 (22:03 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:30:00 +0000 (22:30 +0100)
commit6e0b3f8d64252664f240f0cbd23e3d22ce3df001
tree3899777bf2adfbf8d9e5fd9c634b659657e6b677
parent6ea2556f3e2549284331a3a29a5984f859c3cd5b
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>
drivers/gpu/drm/i915/intel_ringbuffer.c