]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7db970361c8e28f3880db5da7e47e1fd25f8ea80
tree8ae43bfce2065aac19a686b725a326a59cf60ead
parent2adb444a8063ba64432071655cc7a0b07a6f3413
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