drm/i915: Clarify relocation errnos
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 26 Dec 2013 21:39:50 +0000 (13:39 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Jan 2014 08:58:25 +0000 (09:58 +0100)
commit8b78f0e588e22c3d5a8cd3ac260023ae7f942828
tree8ae43bfce2065aac19a686b725a326a59cf60ead
parentc3d19d3c3fb0085fbfb81f546abb8d50fdf58d17
drm/i915: Clarify relocation errnos

While trying to find a random -EINVAL from a failing test, I noticed we
had a few hard to follow return values.

The first two hunks in this patch replace completely useless
initialization of ret. The last several hunks help to distinguish
between altering 'return ret' and 'return <ERROR>'

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c